Files
nix-config/agents/evals/review-comments-and-docs/fixtures/F09-queue-runbook.md
T
ryan4yin | 二花 f32d67a5cc feat(agents): add review-comments-and-docs and two evaluation suites (#434)
Adds the review-comments-and-docs skill (1282-word body) and two evaluation suites: a 21-case
measured suite for the skill, and a harness that runs the two concurrency scenarios previously left
unrun in agents/evals/global-rules.md.
2026-10-12 00:35:06 +08:00

32 lines
1.3 KiB
Markdown

# Queue drain runbook — delivery workers
On 2026-08-02 the job queue filled after a producer retry storm. The dispatcher queue grew until
pods stopped accepting work, workers logged 5xx for about 40 minutes, and on-call drained the queue
by hand.
## Current state
| Field | Value |
| ------------------------ | ------------------------ |
| Queue drain command | `edge-admin queue drain` |
| Pending-job drain target | zero |
| Post-drain observation | ten minutes |
| Escalation | #edge-oncall |
## Recovery
Before restoring from a snapshot, drain the worker and wait for the pending job count to reach zero.
Recall that on 2026-08-02 the job queue filled after a producer retry storm; the dispatcher queue
grew until pods stopped accepting work, workers logged 5xx for about 40 minutes, and on-call drained
the queue by hand. That is the situation this procedure is for.
1. Run `edge-admin queue drain` and wait for pending jobs to reach zero.
2. Restore the data volume from the last snapshot.
3. Uncordon the worker and watch the queue for ten minutes.
## History
- 2026-08-02: producer retry storm filled the queue; about 40 minutes of 5xx responses; resolved by
a manual drain and an upstream retry-cap change (issue #512).