on_timeout policy.
continue_run() time. There is no background timer. If the timeout has elapsed when continue_run() is called, the requirement is auto-resolved.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
hitl_timeout | int | None | Seconds before auto-resolving. None = no timeout |
on_timeout | OnTimeout | None | Action when timeout expires |
OnTimeout Options
| Value | Behavior |
|---|---|
OnTimeout.approve | Auto-confirm the output |
OnTimeout.skip | Skip the step |
OnTimeout.cancel | Cancel the workflow |
Timeout Flow
timeout_at datetime is available on the StepRequirement for frontend countdown display.
With Output Review
Timeout is most useful with output review. If a reviewer doesn’t respond in time, the workflow proceeds automatically.With Confirmation
Timeout also works with pre-execution confirmation:Choosing an OnTimeout Policy
| Policy | Use When |
|---|---|
approve | Output is low-risk and delays are costly. The step’s output is likely acceptable |
skip | The step is optional. Skipping doesn’t break the workflow |
cancel | The step is critical. Proceeding without review is unacceptable |