Clatter LabsHelp Center

What do the run statuses queued, running, completed, failed and cancelled mean?

ReferenceUpdated

Every run has a status. Three of them are final.

StatusMeaningFinal?
queuedAccepted and waiting to startNo
runningCosmos is workingNo
completedFinished; output holds the answerYes
failedCouldn't finish; error says whyYes
cancelledStopped with POST /v1/runs/{id}/cancelYes

How a run moves#

queued ─▶ running ─▶ completed
                 ├─▶ failed      (error.code: run_failed | out_of_credits)
                 └─▶ cancelled

When you create a run, the API answers right away with the run, usually already running.

What to do with each#

  • Not final yet: keep reading the event stream, or poll GET /v1/runs/{id} no faster than every 2 seconds.
  • completed: read output and files.
  • failed: check error.code. out_of_credits means your balance ran out midway; run_failed covers everything else.
  • cancelled: any files saved before the cancel are still listed.

Related articles

Still need help?

Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.

Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyz
For deleting your whole account or the data of one service.