-
Notifications
You must be signed in to change notification settings - Fork 792
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
[Merged by Bors] - Harden slot notifier against clock drift #3519
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This changes the behaviour slightly regarding degenerate cases, if the function takes longer than one slot to execute then we'll skip slots. Previously we'd form a queue and process them all at once.
I think this new behaviour is better since with the current queuing approach we'd end up producing multiple events for the same slot. That seems to have little value, if any.
Happy to merge!
Yeah I think this might have been what @ethDreamer observed a few weeks ago! |
Penta-batch! bors r+ |
There are conflicts in this batch, but I'll let bors figure it out. bors r+ |
Already running a review |
## Issue Addressed Partly resolves #3518 ## Proposed Changes Change the slot notifier to use `duration_to_next_slot` rather than an interval timer. This makes it robust against underlying clock changes.
Build failed (retrying...): |
bors r+ |
Already running a review |
## Issue Addressed Partly resolves #3518 ## Proposed Changes Change the slot notifier to use `duration_to_next_slot` rather than an interval timer. This makes it robust against underlying clock changes.
## Issue Addressed Partly resolves sigp#3518 ## Proposed Changes Change the slot notifier to use `duration_to_next_slot` rather than an interval timer. This makes it robust against underlying clock changes.
Issue Addressed
Partly resolves #3518
Proposed Changes
Change the slot notifier to use
duration_to_next_slot
rather than an interval timer. This makes it robust against underlying clock changes.