-
-
Notifications
You must be signed in to change notification settings - Fork 201
feat(sync): add delayed task submission #1506
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
+550
−14
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5f48f12
feat(sync): add delayed task submission for throttling
jpnurmi 6d98462
Make flush delay-aware so it waits for delayed tasks
jpnurmi a399d2a
Add sentry__bgworker_submit_at for absolute timestamps
jpnurmi b97d337
fix(sync): discard pending delayed tasks on shutdown
jpnurmi c28a807
fix(sync): let is_done handle delayed tasks on shutdown
jpnurmi 3e19e39
test(sync): add delayed task tests for insert-at-head and cleanup
jpnurmi 90295b8
fix(bgworker): skip far-future delayed tasks in flush delay calculation
jpnurmi ba36aa7
fix(bgworker): walk queue to find last eligible task in flush
jpnurmi b827096
fix(bgworker): prevent unsigned wraparound in delayed task deadline
jpnurmi 6ee3c9f
fix(bgworker): prevent head insertion from re-executing current task
jpnurmi bfbfe36
fix(bgworker): use absolute timestamp for flush sentinel scheduling
jpnurmi c24c7f8
fix(bgworker): update current_task->next_task in foreach_matching
jpnurmi 1adbbd2
fix(bgworker): clear current_task when foreach_matching drops it
jpnurmi 499c76b
fix(bgworker): use stable shutdown completion check
jpnurmi e830200
fix(bgworker): check timeout before join in shutdown
jpnurmi e25efac
test(bgworker): verify submit after foreach drops current_task
jpnurmi b686fda
test(bgworker): verify submit after foreach drops next task
jpnurmi a8081eb
docs(sync): add docstring to add_saturate helper
jpnurmi 4969b03
fix(bgworker): skip current_task in flush deadline scan
jpnurmi ba02fbb
fix(bgworker): clamp delayed task wait to prevent uint32 wrapping
jpnurmi 7a15acc
Merge remote-tracking branch 'upstream/master' into jpnurmi/feat/dela…
jpnurmi 3a477a5
Merge remote-tracking branch 'upstream/master' into jpnurmi/feat/dela…
jpnurmi 49ad07b
docs: add comment about benign race window in bgworker flush
jpnurmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.