poll_job
Block until a document processing job reaches a terminal state, using configurable polling intervals and timeouts to avoid manual retries.
Instructions
Poll an asynchronous DocuProx job until it reaches a terminal status (COMPLETED, FAILED, or ERROR) or a timeout is reached. Useful to block until a job is done without manual retries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | UUID of the job to poll. | |
| timeout_ms | No | Max wait time in ms (default: 300000). | |
| interval_ms | No | Polling interval in ms (default: 3000). |