Job Wait
job_waitBlocks until a background job finishes and returns its final state and result; if the timeout expires, returns the job as still running so you can call again.
Instructions
Block until a job finishes, then return its final state and result.
If timeout_s elapses first, returns it still running: call again to keep waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Id from a write that returned status='started' (or job_list). | |
| timeout_s | No | Seconds to wait. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| error | No | ||
| label | Yes | ||
| state | Yes | ||
| result | No | ||
| progress | No | ||
| started_at | Yes | ||
| finished_at | No |