Docs / Pods

Pod lifecycle & states

Every pod moves through five states. The state decides what is billed and which actions are allowed.

States

StatusMeaningBilled
CREATEDThe pod object exists and is waiting for a host with a free GPU of the requested type.Nothing
PROVISIONINGA host is assigned. The image is being pulled, disks are allocated and the container is starting.Nothing
RUNNINGThe container is running and its ports are reachable.GPU, container disk and volume disk
EXITEDThe container stopped, either because you stopped it or because its main process exited. The GPU is released; the volume disk is kept.Volume disk at the stopped rate
TERMINATEDThe pod and its container disk and volume disk are deleted. Network volumes are not affected. Terminal state.Nothing

Transitions

state machine
CREATED ──► PROVISIONING ──► RUNNING ──stop / process exits──► EXITED
                                  ▲   │                             │
                                  │   └──restart (same host)        │
                                  └──────────── start ◄─────────────┘

any state ──terminate (DELETE /pods/{podId})──► TERMINATED
  • CREATED → PROVISIONING: a host with a free GPU of the requested type was found.
  • PROVISIONING → RUNNING: the image was pulled, disks were mounted and the container started.
  • RUNNING → EXITED: you called stop, the container's main process exited, or your balance reached zero.
  • EXITED → PROVISIONING: you called start. The pod restarts on the same host.
  • * → TERMINATED: you called DELETE /pods/{podId}. This cannot be undone.

status and desiredStatus

status is what the pod is doing right now. desiredStatus is what you asked for: RUNNING, EXITED or TERMINATED. They differ while a transition is in progress, for example right after start the pod has desiredStatus: "RUNNING" and status: "PROVISIONING".

If status is EXITED while desiredStatus is still RUNNING, the container's main process exited on its own. Check lastExitCode and the logs. Pods do not restart automatically.

Allowed actions per state

ActionCREATEDPROVISIONINGRUNNINGEXITED
start–––Yes
stopYesYesYes–
restart––Yes–
PATCHYesYesYes (restarts the pod)Yes
DELETEYesYesYesYes

Calling an action that is not allowed returns 409 invalid_state. TERMINATED pods accept no actions and disappear from GET /pods after 24 hours.

Reacting to state changes

Subscribe to pod.created, pod.running, pod.exited and pod.terminated with an account webhook instead of polling. Each event carries the full pod object in data.object.