feat(admin): add decommission-workers and worker-status CLI commands#1165
Merged
nicoloboschi merged 1 commit intomainfrom Apr 20, 2026
Merged
Conversation
Adds two new admin CLI commands for diagnosing and recovering from worker crashes (addresses #991): - `decommission-workers`: resets ALL processing tasks back to pending regardless of worker_id (unlike existing `decommission-worker` which requires knowing the dead worker's ID) - `worker-status`: shows all processing tasks grouped by worker with operation type, bank, runtime, and last update time
r266-tech
added a commit
to r266-tech/hindsight
that referenced
this pull request
Apr 20, 2026
PR vectorize-io#1165 added two new admin CLI commands (decommission-workers, worker-status) but admin-cli.md was not updated. Readers scanning the Commands section could only find the singular decommission-worker. Added dedicated sections for each new command following the existing style (Arguments/Options/Examples/When to Use). Pure docs, mirrors behavior documented in typer command help strings.
2 tasks
nicoloboschi
pushed a commit
that referenced
this pull request
Apr 21, 2026
* docs(admin-cli): document decommission-workers and worker-status PR #1165 added two new admin CLI commands (decommission-workers, worker-status) but admin-cli.md was not updated. Readers scanning the Commands section could only find the singular decommission-worker. Added dedicated sections for each new command following the existing style (Arguments/Options/Examples/When to Use). Pure docs, mirrors behavior documented in typer command help strings. * docs(admin-cli skill): sync decommission-workers and worker-status Mirror change from hindsight-docs/docs/developer/admin-cli.md so the docs skill reference stays in sync (matches the pattern set by #1137).
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.
Summary
hindsight-admin decommission-workerscommand that resets ALL processing tasks back to pending regardless of worker_id — the "just fix everything" recovery button for Stale claimed_at not reclaimed after worker crash — operations stuck in 'processing' forever #991 scenarios where dead worker hostnames are unknownhindsight-admin worker-statuscommand that shows all processing tasks grouped by worker with operation type, bank, runtime, and last update time — for diagnosing orphaned tasks before decommissioningTest plan
TestDecommissionAllWorkersandTestWorkerStatuscover core behavior, edge cases (no processing tasks, mixed statuses), and verify non-processing tasks are untouchedTestWorkerDecommissiontests still pass (single-worker decommission unchanged)