status_url returned by the submission response until the request reaches a terminal state.
Recommended strategy
- Start with a two-second interval.
- Increase the interval gradually up to ten seconds.
- Add random jitter when many workers poll concurrently.
- Stop on
completed,failed,nsfw, orcanceled. - Set an application-level timeout appropriate for the selected model.
Retry decisions
For long-running production workloads, use webhooks and keep polling as a recovery path.