Repository navigation
Unblock waiting jobs when discarding ready jobs in bulk - #818
Merged
Merged
Conversation
Bulk discards now free each job's concurrency slot and promote the next blocked job one job at a time, so this lives next to the single-job unblock_next_blocked_job as Job.unblock_next_blocked_jobs. Semaphore.signal_all had no callers left. It also returned only one slot when several discarded jobs shared a key, and never extended expires_at like signal does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rosa
force-pushed
the
fix-bulk-discard-unblocking
branch
from
November 3, 2026 07:41
436fe16 to
541c00d
Compare
Member
|
Thanks a lot, @ydah! I rebased this onto main and added one commit on top: the per-job unblocking now lives in |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Bulk discarding ready jobs, including through
Queue#clear, releases semaphores without promoting blocked jobs. Successors remain blocked until expiration and concurrency maintenance.Use the same
unblock_next_blocked_jobpath as individual discards for each selected job. Bound batched discards by the initial maximum execution ID so newly promoted jobs survive subsequent batches.