Skip to content

Reset execution counters when retrying failed jobs in bulk - #817

Open
ydah wants to merge 1 commit into
rails:mainfrom
ydah:fix-bulk-retry-counters
Open

ydah wants to merge 1 commit into
rails:mainfrom
ydah:fix-bulk-retry-counters

Conversation

@ydah

@ydah ydah commented Oct 14, 2026

Copy link
Copy Markdown

FailedExecution.retry_all leaves the serialized retry counters intact, so a job that exhausted retry_on fails immediately on its next error after a bulk retry.

Reset the counters on the locked failed jobs before dispatching them, using the same helper as single-job retries. The regression test verifies that executions becomes 0, exception_executions becomes {}, automatic retries resume, and finished jobs included in the input retain their counters.

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