Skip to main content
Demonstrates timeout with pre-execution confirmation (requires_confirmation) using the HITL config class. The step pauses BEFORE execution and waits for human approval. If no one responds within the timeout, the on_timeout action fires automatically.
confirmation_timeout.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as confirmation_timeout.py, then run:
Full source: cookbook/04_workflows/08_human_in_the_loop/timeout/02_confirmation_timeout.py