mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-01 10:23:57 +01:00
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.
32 lines
1.3 KiB
Markdown
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).
|