docs(board): a worker restart during a repo index loses the run - #238
Closed
sshlg wants to merge 1 commit into
Closed
docs(board): a worker restart during a repo index loses the run#238sshlg wants to merge 1 commit into
sshlg wants to merge 1 commit into
Conversation
Measured 2026-08-27, and self-inflicted while measuring something else: release
v279 restarted the worker at 10:59:34 UTC, 37 minutes into a 42-minute index.
10:59:36 shutdown on SIGTERM ◆ 0 jobs complete ◆ 2 failed ◆ 0 retries
◆ 1 ongoing to cancel
10:59:36 Process exited with status 143
10:59:45 Starting process with command `arq app.worker.WorkerSettings`
The fresh worker re-queued nothing — no `run_repo_index` and no
`run_daily_project_knowledge_sync` start appears in the following 30 minutes of
worker log. `WorkerSettings` sets neither `retry_jobs` nor `max_tries`, so arq's
defaults were in force and still did not retry. The reaper then correctly flipped
both rows to `failed / stale run reaped`, which reaches `error_log` since N3.
Filed rather than fixed, because the fix is a decision and not a detail:
re-enqueueing on shutdown risks a double run against the `_indexing_locks` and
advisory-lock guarantees, and leaving it to the nightly cron means making the
loss visible in the UI instead. Blast radius is bounded either way — the
checkpoint survived with its completed steps recorded, so the next run resumes
cheaply.
Counts in the file are re-derived from the rows, not edited by hand.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Superseded by the PR above: the CB-OPS3 row travels there alongside the CB-OPS1 re-opening and the resume fix, so the board moves in one change rather than two that conflict. |
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 was measured
Release
v279restarted the worker at 10:59:34 UTC, 37 minutes into a 42-minute repo index:The fresh worker re-queued nothing — no
run_repo_indexorrun_daily_project_knowledge_syncstart in the next 30 minutes of worker log.WorkerSettingssets neitherretry_jobsnormax_tries, so arq's defaults were in force and still did not retry.The reaper then did its job correctly: both rows to
failed / stale run reaped, which reacheserror_logsince N3.Worth saying plainly: the restart was my own merge of #237 deploying. The finding is real regardless — a routine deploy silently costs a 42-minute index — but the trigger was self-inflicted, not a production incident.
Why filed and not fixed
The fix is a decision, not a detail:
_indexing_locksand advisory-lock guarantees;error_log.Blast radius is bounded either way: the checkpoint survived with its completed steps recorded (
indexing_checkpoint_step), so the next run resumes cheaply, and the cron re-runs within 24 h. A resilience gap, not lost data.Also in this change
CB-OPS1struck — closed on measurement, not assertion: a full rebuild on Standard-2X logged zeroR14, zeroR15, and nomem=at all, andgraph_buildcompleted over the full symbol set, which is the case the row said no run had exercised.Severity table and the tally sentence are re-derived from the rows by script, not edited by hand: 33 open
F-, 76 struck, 6 openCB-, 39 open total.Verification
pytest tests/unit/docs/— 50 passed (the ratchets that check this file's own arithmetic).