Error Pause Mode
Seton_error=OnError.pause to pause when a step fails:
OnError Options
ErrorRequirement Properties
When a step fails withon_error=OnError.pause, an ErrorRequirement is created:
ErrorRequirement Methods
Retry Behavior
When you callreq.retry():
- The step executes again with the same input
- If it fails again, the workflow pauses again
- You can retry indefinitely or skip after some attempts
Skip Behavior
When you callreq.skip():
- The failed step produces no output and is not re-executed
- The workflow continues with the next step
- The next step’s
step_input.previous_step_contentcomes from the last successful step, or isNoneif there is none