Failure Handling
Failure handling is the core of a durable execution platform. By default, Dex retries a failed Step method—WaitFor or Execute—with exponential backoff. Configure that retry behavior through StepOptions.
When retries alone do not meet the requirement, choose one of these patterns. They add an explicit recovery path for compensation, operator intervention, an overall Flow deadline, or an exhausted WaitFor failure.
- Execute Failure Recovery — Retry failed work, then move to a recovery Step.
- Manual Recovery — Escalate an exhausted failure to a human to make a decision or intervene.
- Graceful Timeout — Leverage Dex's built-in graceful timeout feature to handle the overall Flow timeout.
- WaitFor Failure Recovery — Continue from an exhausted WaitFor failure and recover in a Step.