wait
Block server-side until a job reaches a terminal state or timeout expires. Replaces multiple poll calls with a single wait, reducing polling costs.
Instructions
Block server-side until job reaches a terminal state or timeout expires.
Returns the same shape as poll(). Reduces driver-side polling cost — one wait call replaces N poll calls. If timeout hits before completion, returns the current (non-terminal) state; caller may wait() again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||