Fluxo detraballo

Visão geral

Una esecuzione: dove è, o que ogni passo produce, e le quattro cose che si possono fare a lui — attendere, reanudare, tentare, annulla.

5 methods5 statusessurvives your process
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

ChamadaFunção
Reviraf()Relea il suo stato.
wait(options)Sonda jusqu'a che alcaloya un status che tu nomi.
resume(pass-pad, data)Aprova un passo umano in attesa.
retry(stepId)Lo ricorre da un pas, mantenendo censo censo.
cancel()- Non lo stopè.

Ce data deten

run.data;
// {
//   id, workflowId, status: "running" | "waiting" | "succeeded" | "failed" | "cancelled",
//   input: { … },
//   steps: [{ id, type, status, output, credits, error, warnings, attempts, startedAt, endedAt }],
//   credits, startedAt, endedAt
// }
run.data
# {
#   "id", "workflowId", "status": "running" | "waiting" | "succeeded" | "failed" | "cancelled",
#   "input": {…},
#   "steps": [{"id", "type", "status", "output", "credits", "error", "warnings", "attempts", "startedAt", "endedAt"}],
#   "credits", "startedAt", "endedAt"
# }

I cinque status

statusSignificadoCe pots fare
runningIn corso.cancel()
waitingFermata a un pasu umano.resume() · cancel()
succeededFinit.—
failedUn pas failed.retry()
cancelled- Fermata.—

Cada metodo aggiorna l'obiettivo

refresh(), resume(), retry() e cancel(), tutti sostitui data con quello che è tornat e restitui la stessa instancia — de sorte que un riferimento che tenete sta atuant.

È un instantàn jusqu'a che tu lo refreschi

Un run move sulla piattaforma senza dir — lettura di dati due veces senza un rafrontment da la stessa risposta.