wait_for_batch
Blocks until a batch completes or times out, then returns its status along with the wait time and timeout indicator.
Instructions
Block until every job in the batch is terminal (done or error) or the timeout elapses, then return the same rollup as get_batch_status plus timed_out/waited_s. Default timeout 300s, hard cap 600s — it can never hang; if timed_out is true, call it again or poll get_batch_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | The batch_id returned by submit_batch. | |
| timeout_s | No | Max seconds to wait (default 300, hard cap 600). |