Skip to content

fix(sdk): Use current time for onOperationAttemptStart startTimestamp#718

Merged
SilanHe merged 1 commit into
mainfrom
fix/use-current-time-for-attempt-start-timestamp
Jul 14, 2026
Merged

fix(sdk): Use current time for onOperationAttemptStart startTimestamp#718
SilanHe merged 1 commit into
mainfrom
fix/use-current-time-for-attempt-start-timestamp

Conversation

@SilanHe

@SilanHe SilanHe commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Replace the startTimestamp derived from stepData (the checkpoint record) with new Date() so that plugins receive the actual wall-clock time when each attempt begins executing.

Updated tests to assert startTimestamp is a recent Date instance.

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

@SilanHe SilanHe changed the title fix(plugin): Use current time for onOperationAttemptStart startTimestamp fix(sdk): Use current time for onOperationAttemptStart startTimestamp Jul 14, 2026
Replace the startTimestamp derived from stepData (the checkpoint record)
with new Date() so that plugins receive the actual wall-clock time when
each attempt begins executing.

Updated tests to assert startTimestamp is a recent Date instance.
@SilanHe
SilanHe force-pushed the fix/use-current-time-for-attempt-start-timestamp branch from 19d9823 to 1104e4a Compare July 14, 2026 22:49
@SilanHe SilanHe closed this Jul 14, 2026
@SilanHe SilanHe reopened this Jul 14, 2026
@SilanHe
SilanHe marked this pull request as ready for review July 14, 2026 23:12
@SilanHe
SilanHe merged commit 000eb3a into main Jul 14, 2026
21 of 23 checks passed
@SilanHe
SilanHe deleted the fix/use-current-time-for-attempt-start-timestamp branch July 14, 2026 23:18
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.

3 participants