Skip to content

Remove -force from retry-failed - #22

Merged
rorylshanks merged 1 commit into
mainfrom
remove-retry-failed-force
Nov 16, 2026
Merged

rorylshanks merged 1 commit into
mainfrom
remove-retry-failed-force

Conversation

@rorylshanks

Copy link
Copy Markdown
Collaborator

Problem

retry-failed -all -force selected every row in the job and moved it to READY with no state check.

  • It included IMPORTED, SUPERSEDED, COMPACTING and generated compact rows.
  • It left superseded_by and compact_ready_at on the row.
  • A part that failed during import went to READY instead of FINISHED.

On a job that had reached compaction or import, this could rewrite and attach the same data twice.

Change

  • Remove the -force flag from retry-failed.
  • Delete Store.ForceRetryPart.
  • Remove the forced field from the text and JSON output of retry-failed.
  • Update the command help and docs/operations.md.

retry-failed now only touches FAILED parts, plus IN_PROGRESS parts with -include-in-progress or -stale.

Replacements

Need Command
Re-run one part that has not failed set-part-state -part-id=X -to-status=READY -force
Re-run a whole job reset-job

Breaking

  • Scripts that pass -force to retry-failed now fail with an unknown flag error.
  • Consumers of retry-failed -json no longer get the forced key.

Verification

  • go mod tidy: no changes
  • go test ./...: pass
  • ./e2e/run.sh: pass

🤖 Generated with Claude Code

retry-failed -all -force selected every row in the job and moved it to
READY with no state check. That included IMPORTED, SUPERSEDED,
COMPACTING and generated compact rows, and it left superseded_by and
compact_ready_at on the row, so a job that had reached compaction or
import could end up with the same data rewritten and attached twice.

Both legitimate uses are already covered by guarded commands:
set-part-state re-runs a single part, and reset-job re-runs a whole job
after validating compaction lineage and refusing once import has
started.

retry-failed now only touches FAILED parts, plus IN_PROGRESS parts with
-include-in-progress or -stale. The "forced" field is gone from its
text and JSON output.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rorylshanks
rorylshanks merged commit 2890491 into main Nov 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant