run_not_ready
A read that needs a settled Run was asked of one that has nothing to serve yet.
Status
HTTP 409, title Run not ready. One of the the request itself errors. Branch on code, never on the status or the prose.
Retryable: yes. Every body carries this as retryable: true, beside action and remedy: the same request can succeed later, after a backoff or the wait the response names.
Common causes
- The Run is still running.
- The Run failed, so there is nothing to read.
What to do
Action: Poll the Run until it settles, then read again. If it failed, start a new Run.
A running Run will settle: poll it with GET /v1/runs/{id} until it is completed or partial, then retry the read. A failed Run will not: retrying cannot help, so start a new Run.
Example
The body arrives as application/problem+json, with retryable and the remedy above. Most responses add detail about the occurrence, and some add fields of their own.
{
"type": "https://www.shortsintel.com/docs/reference/errors/run_not_ready",
"title": "Run not ready",
"status": 409,
"code": "run_not_ready",
"retryable": true,
"action": "Poll the Run until it settles, then read again. If it failed, start a new Run.",
"remedy": "A running Run will settle: poll it with `GET /v1/runs/{id}` until it is `completed` or `partial`, then retry the read. A failed Run will not: retrying cannot help, so start a new Run."
}