Repository navigation
fix(server): consecutive requeues are bounded - #274
Merged
Merged
Conversation
A repository requeued three times in a row backs off as a failure on the fourth, counted under a new error kind "requeue-limit", instead of retrying every minute forever when the cause never resolves.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | b83ee98 | Commit Preview URL Branch Preview URL |
Nov 12 2026, 12:43 AM |
Merged
This was referenced Nov 12, 2026
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.
The server's requeues are bounded. Until now a repository that kept losing a race reran every minute for good, with nothing counting the requeues. That was fine while the only cause was a moved default branch, which arrives with its own push event. The next PR widens requeueing to lifecycle races, which include GitHub lag: that has no event and can hit many repositories at once during an incident.
server_work.requeues INTEGER NOT NULL DEFAULT 0.Claimcarriesrequeues;finish_workadds one on a requeue and resets it onDoneorFailed(a failure already backs off; keeping the streak through it would turn the next unrelated requeue into a second failure). Recovery of a leftover claim resets it too.MAX_REQUEUES = 3besideRETRY_MS. A claim requeued three times in a row finishes its fourth requeue asFailed, under the new error kindrequeue-limit, so it takes the normal failure backoff and shows in thebatch failedlog. Below the cap nothing changes (a_requeue_retries_after_a_minute_without_counting_as_a_failurestill passes).Doneand onFailed, the fourth requeue failing with backoff, and the migration on a fresh and a schema-11 database.guide/server.mdxstates the cap.Behaviour change: a repository requeued three times in a row backs off as a failure on the fourth.