Workflow Error Handling
Strategies
| Strategy |
Behavior |
| stop |
Stop the workflow immediately (default) |
| skip |
Skip the failed step, continue with next |
| retry |
Retry the failed step N times |
Configuration
workflows:
data-pipeline:
onError: stop
retries: 3
retryDelay: 5
steps:
- name: fetch-data
agent: fetcher
onError: retry
retries: 5
- name: clean-data
agent: cleaner
Stop Strategy
Step 1 ✓ → Step 2 ✗ → STOP
Skip Strategy
Step 1 ✓ → Step 2 ✗ → Step 3 ✓ (receives Step 1's output)
Retry Strategy
Step 1 ✓ → Step 2 ✗ → retry → Step 2 ✗ → retry → Step 2 ✓ → Step 3