Repository navigation
fix(server): auto-retry a queue hold after a transient provider failure (30s/2m/5m ladder) - #36
Open
akulageegge wants to merge 1 commit into
Open
akulageegge wants to merge 1 commit into
akulageegge wants to merge 1 commit into
Conversation
…m/5m ladder after a transient provider failure holds the queue; the retry resumes the queue like a user Resume; past the ladder a person resumes
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.
What
A queue hold caused by a transient provider failure (e.g. a local model server briefly overloaded) currently waits for a human to press Resume. This adds an automatic retry ladder:
queue-hold.retryeffects fire at 30 s, 2 m and 5 m after the hold, and a successful retry resumes the queue exactly like a user Resume. Past the ladder, a person resumes as before.Why
Aziz's box runs this fork as the daily driver; a 30-second provider hiccup was holding queued runs with the thread idle until someone noticed.
Shape
EffectOutbox.ts: emit the retry effects alongside the hold.EffectWorker.ts: schedule/redeemqueue-hold.retryon the 30s/2m/5m ladder; idempotent, cleared on any successful resume.Orchestrator.ts: the retry path reuses the existing hold-resume code (no new resume semantics).QueueHoldResume.ts: shared redemption helper.EffectWorker.test.ts: ladder timing, idempotency, and human-resume-still-wins cases.Tested
Unit suite for the worker/orchestrator paths (83 new test lines); the same behavior is live on the workstation fork build since 2026-11-26 11:40 CST.