Wait for job state
agy_waitWait for an asynchronous job to finish by polling until completion or a timeout, then return the judgement packet. Use wait_ms=0 for an immediate status snapshot.
Instructions
Long-poll a job until it FINISHES or wait_ms runs out — it does not return early on intermediate transitions like queued->running (200ms internal polling; wait_ms=0 for an immediate snapshot). A short wait_ms is a poll interval, not a change notification: each call blocks for the whole budget unless the job finished. Returns the judgement packet only, not full logs or the response text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| wait_ms | No | Max time to block. 0 returns the current state immediately. | |
| after_cursor | No | Byte offset from a previous call, applied to the in-progress log tail. A finished job returns the full judgement packet and its end-of-stream cursor regardless. |