Definição do fluxo de trabalho

Gatilho · cron

trigger: { type: "cron", cron: "0 8 * * 1" }

Il detonante che fa la regola di approvazione manteve la matis.

a cron expressionnobody watchinginput comes from the schedule
Using Python?

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

trigger: { type: "cron", cron: "0 8 * * 1" }    // Mondays at 08:00
trigger = {"type": "cron", "cron": "0 8 * * 1"}    # Mondays at 08:00

Que input detiene

Qualunque sia il calendario fornès — non c'è chi chiama per passare ningun. Una catena programmada che necessita di una data lo calcula a partir del moment in cui esegue, in lugar de ler da input.

Itèn is onde il passo umano guanta il suo mantene

Una run programat pode inviare, pubblicare o cambiare DNS solo dopo una approvazione

La catena corre, raggiunge il passo umano, e s'imprime come aspettante — indefinitamente. Qualcuno lo approva, e il resto procede. Un flusso di lavoro che agisse sul mondo senza che è negato quando è salvat.

Un attesa di corsa è una casella di posta

const waiting = (await workflow.runs()).filter((r) => r.data.status === "waiting");

for (const run of waiting) {
  const step = run.data.steps.find((s) => s.status === "waiting");
  console.log(run.id, step.config?.title);
}
waiting = [r for r in workflow.runs() if r.data["status"] == "waiting"]

for run in waiting:
    step = next(s for s in run.data["steps"] if s["status"] == "waiting")
    print(run.id, (step.get("config") or {}).get("title"))

Attenzione a la superpista

Un calendari che incendie più velocit di che i finis de catene produce runs che superpun. Una catene con una approvazione in esso puè esperar per giorni — un calendaris semanali su it è una cola, non un ciclo.

Un programa spende su sèl

Ogni tiro costa quanto costan i suoi steps, con nessuno decidendo a cada volta. Observe run.data.credits a travers runs antes de fixare un programa.