Skip to content

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
MiaAI-Lab:mainfrom
akulageegge:harness/auto-resume-held-queue
Open

akulageegge wants to merge 1 commit into
MiaAI-Lab:mainfrom
akulageegge:harness/auto-resume-held-queue

Conversation

@akulageegge

Copy link
Copy Markdown

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.retry effects 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/redeem queue-hold.retry on 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.

…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
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L labels Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant