Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

durable::ScheduledTime: Properly compute offsets #216

Merged
merged 1 commit into from Aug 31, 2022

Conversation

cjpatton
Copy link
Contributor

From<Duration> and From<i64> for ScheduledTime interpret the
inputs as timestamps (in particular, the number of milliseconds since
the UNIX epoch). Based on the test case in worker-sandbox
("durable_alarm"), the intention appears to interpret these as offsets
relative to the current time. This change aligns these methods with this
expectation.

`From<Duration>` and `From<i64>` for `ScheduledTime` interpret the
inputs as timestamps (in particular, the number of milliseconds since
the UNIX epoch). Based on the test case in worker-sandbox
("durable_alarm"), the intention appears to interpret these as offsets
relative to the current time. This change aligns these methods with this
expectation.
Copy link
Collaborator

@zebp zebp left a comment

Choose a reason for hiding this comment

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

LGTM! CI failure is unrelated and has since been fixed in main.

@zebp zebp merged commit bf461c4 into cloudflare:main Aug 31, 2022
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.

None yet

2 participants