job_wait
Waits for a job to finish up to a timeout, relays progress messages as notifications, and returns its state; a timeout returns Status running instead of an error.
Instructions
Waits for a job to end, up to the timeout, sending its progress messages as progress notifications, and returns its state. A timeout is a result (Status running), not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | The job id, e.g. job-7. | |
| timeoutSeconds | No | How long to wait, up to 1800 seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| error | Yes | ||
| jobId | Yes | ||
| result | Yes | ||
| status | Yes | ||
| message | Yes | ||
| endedUtc | Yes | ||
| startedUtc | Yes |