wait_for_job
Polls a job until it reaches a terminal status—succeeded, failed, or cancelled—then returns the result; optionally stop after a timeout and return the last known state.
Instructions
Wait for a job to reach a terminal status (succeeded, failed, or cancelled) using API long polling, then return it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job ID to wait on. | |
| timeout_seconds | No | Give up after this many seconds and return the last known job state. Defaults to 300, max 1800. |