wait_for_execution
Poll an execution until it reaches a terminal state or timeout. Returns early with waiting status if the execution pauses on a Wait node, enabling asynchronous workflow handling.
Instructions
Poll an execution until it reaches a terminal state (success/error/crashed/canceled) or the timeout expires. Returns early with waiting=true if the execution pauses on a Wait node. Closes the loop after run_webhook in queue mode, where execution happens asynchronously on workers. The timeout is best-effort: each poll request has its own HTTP timeout, so total wall time can slightly exceed timeoutSeconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Execution ID to wait for | |
| timeoutSeconds | No | Max time to wait | |
| pollSeconds | No | Interval between checks |