All problems

Batch Retry Reprocesses Items That Already Succeeded

Level 2 · node · Reliability · Retry progress recovery error

Scenario

A settlement batch worker processes items in order and should resume from the last successful position after a failure. The repository persists nextIndex, but the worker always starts again at zero, repeating side effects for completed items.

Requirements

- First run starts at item zero - Save the next index after each success - Do not advance the checkpoint past a failed item - Retry starts at persisted nextIndex - Completed items are not processed again

Acceptance criteria

  • Initial run starts at first item
  • Checkpoint advances after success
  • Checkpoint stays on failure
  • Retry resumes from checkpoint
  • Completed side effects are not duplicated