Skip to main content
Control error handling within Condition steps using the on_error parameter. When a sub-step inside a Condition fails, you can choose to skip (default), fail the entire workflow, or pause for HITL resolution.
condition_on_error.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as condition_on_error.py, then run:
Full source: cookbook/04_workflows/08_human_in_the_loop/condition/02_condition_on_error.py