Skip to content

Unblock waiting jobs when discarding ready jobs in bulk - #818

Open
ydah wants to merge 1 commit into
rails:mainfrom
ydah:fix-bulk-discard-unblocking
Open

ydah wants to merge 1 commit into
rails:mainfrom
ydah:fix-bulk-discard-unblocking

Conversation

@ydah

@ydah ydah commented Oct 14, 2026

Copy link
Copy Markdown

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_job path as individual discards for each selected job. Bound batched discards by the initial maximum execution ID so newly promoted jobs survive subsequent batches.

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