Job states
Every job moves through a small, fixed set of states. Two are transient and four are terminal; once a job is terminal its output or error never changes, unless you retry it.
States
| Status | Meaning | Terminal |
|---|---|---|
IN_QUEUE | Accepted and waiting for a free worker. | No |
IN_PROGRESS | A worker picked up the job and the handler is running. | No |
COMPLETED | The handler returned. The result is in output. | Yes |
FAILED | The handler raised an exception or returned an error key. Details are in error. | Yes |
CANCELLED | Cancelled through /cancel/{jobId} or /purge-queue before it completed. | Yes |
TIMED_OUT | The job exceeded its execution timeout, or its time-to-live expired while it was still in the queue. | Yes |
Transitions
/run, /runsync, /retry
│
▼
┌──────────┐ ttl expired ┌───────────┐
│ IN_QUEUE │───────────────▶│ TIMED_OUT │
└──────────┘ └───────────┘
│ │ /cancel, /purge-queue ▲
worker │ └──────────────▶ CANCELLED │ execution timeout
picks up ▼ ▲ │
┌─────────────┐ /cancel │ │
│ IN_PROGRESS │────────────────┘ │
└─────────────┘───────────────────────┘
│ │
returns │ │ raises / returns {"error": ...}
▼ ▼
COMPLETED FAILED/retry moves a FAILED, TIMED_OUT or CANCELLED job back to IN_QUEUE with the same ID.
Timing fields
| Field | Unit | Meaning |
|---|---|---|
delayTime | ms | From submission until a worker started the handler. Includes queueing and any cold start. |
executionTime | ms | Handler run time. This is what the execution timeout is compared against. |
createdAt | ISO 8601 | When the job was submitted. |
completedAt | ISO 8601 | When the job reached a terminal state. null until then. |
{
"id": "job_3x9wq2mt",
"status": "COMPLETED",
"delayTime": 812,
"executionTime": 1934,
"workerId": "wrk_8q3m2x9k",
"output": {
"imageUrl": "https://s3.eu-nl-1.apipods.com/vol_c7d2h4ke/outputs/job_3x9wq2mt.png",
"seed": 1730299
},
"createdAt": "2026-11-18T10:02:13Z",
"completedAt": "2026-11-18T10:02:16Z"
}FAILED versus TIMED_OUT
FAILEDmeans your handler ran and reported an error.error.typeis the exception class,error.messagethe message anderror.tracebackthe Python traceback. Fix the input or the code.TIMED_OUTmeans the job either waited in the queue longer than itsttlInSec(checkexecutionTime: it is0) or ran longer than its execution timeout. The first usually meansmaxWorkersis too low or your GPU pools are throttled; the second means the timeout is too short or the handler is stuck.
Result retention
Terminal jobs from /run are kept for 30 minutes, and from /runsync for 60 seconds. After that /status returns 404 resource_not_found. Persist outputs you need to keep, for example from a webhook handler.