Skip to content

fix(sdk): fix timestamp format for checkpoint#131

Merged
wangyb-A merged 1 commit intomainfrom
fix_execution_op_timestamp
Nov 7, 2025
Merged

fix(sdk): fix timestamp format for checkpoint#131
wangyb-A merged 1 commit intomainfrom
fix_execution_op_timestamp

Conversation

@wangyb-A
Copy link
Copy Markdown
Contributor

@wangyb-A wangyb-A commented Nov 7, 2025

Issue #, if available:

Description of changes:

  • fix timestamp for execution succeed and fail

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- fix timestamp for execution succeed and fail
@wangyb-A wangyb-A requested a review from yaythomas as a code owner November 7, 2025 21:12
@wangyb-A
Copy link
Copy Markdown
Contributor Author

wangyb-A commented Nov 7, 2025

#132 to confirm which operation id we should use in the future, we can use timestamp for now.

"""Create an instance of OperationUpdate for type: EXECUTION, action: SUCCEED."""
return cls(
operation_id=f"execution-result-{datetime.datetime.now(tz=datetime.UTC)}",
operation_id=f"execution-result-{int(datetime.datetime.now(tz=datetime.UTC).timestamp() * 1000)}",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align with what ts doing right now

@wangyb-A wangyb-A merged commit 3b70eb1 into main Nov 7, 2025
10 of 11 checks passed
@wangyb-A wangyb-A deleted the fix_execution_op_timestamp branch December 9, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants