Skip to main content
Use HITL when a step encounters an error. When a step with on_error="pause" fails, the workflow pauses and lets the user decide to either retry the step or skip it and continue with the next step.
error_retry_skip.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as error_retry_skip.py, then run:
Full source: cookbook/04_workflows/08_human_in_the_loop/error/01_error_retry_skip.py