Wait for a job to finish
wait_for_jobWait for a Midjourney job to finish, fail, or be moderated, then retrieve its image URLs. Polls with widening intervals and times out without canceling the job.
Instructions
Block until a job reaches a finished, failed or moderated state, then return it with its image URLs.
The poll interval widens as the wait goes on, so a long relax-mode job does not turn into hundreds of requests. Times out after MIDJOURNEY_JOB_TIMEOUT_MS, ten minutes by default; a timeout does not cancel the job, it is still running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job id to wait on. | |
| timeout_ms | No | Give up after this long. Defaults to MIDJOURNEY_JOB_TIMEOUT_MS. |