Skip to content

Bug: Scheduled functions to be scheduled from thier "intended" execution time. - #5735

Open
Shubham8287 wants to merge 3 commits into
masterfrom
shub/fix-scheduled-timing
Open

Bug: Scheduled functions to be scheduled from thier "intended" execution time.#5735
Shubham8287 wants to merge 3 commits into
masterfrom
shub/fix-scheduled-timing

Conversation

@Shubham8287

@Shubham8287 Shubham8287 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

Scheduled functions are scheduled from actual execution time of the current run, rather than originally scheduled time. As a result, a small tokio::time precision delay or head of line blocking from previously scheduled run causes permanent drift. More context: https://discord.com/channels/931210784011321394/1375519127120117860/1534930453797142578

PR fixes that, by adapting scheduled behaviour more like MissedTickBehaviour::Skip.

API and ABI breaking changes

NA

Expected complexity level and risk

1

Testing

Exisiting and added few unit tests.

@Shubham8287
Shubham8287 requested a review from gefjon August 13, 2026 12:32
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.

1 participant