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
retry_countincrements- If it fails again, the workflow pauses again
- You can retry indefinitely or skip after some attempts
Skip Behavior
When you callreq.skip():
- The step is marked as skipped (not failed)
- The workflow continues with the next step
step_input.previous_step_contentwill beNonefor the next step