من

runs()

workflow.runs() → Promise<WorkflowRun[]>

تاريخ تشغيل هذا العمل، كل واحد من كل واحد من تدفق العمل الكامل يمكنك أن تُنعش، تستأنف أو تعيد المحاولة.

GET /api/workflows/:id/runsfreeWorkflowRun objects
Using Python?

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

const runs = await workflow.runs();

for (const run of runs) {
  console.log(run.id, run.data.status, run.data.startedAt);
}

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

for run in runs:
    print(run.id, run.data["status"], run.data.get("startedAt"))

waiting = [r for r in runs if r.data["status"] == "waiting"]

الـ التصنيفات

الوضعالمعنى
runningقيد التنفيذ.
waitingتم وضع حد في human لا يتحرك شيء حتى يستأنف
succeededتم الانتهاء.
failedخطوة واحدة فاشلة.
cancelledتم إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء إلغاء.

إيجاد ما يحتاج إلى شخص

for (const run of await workflow.runs()) {
  if (run.data.status !== "waiting") continue;
  const step = run.data.steps.find((s) => s.status === "waiting");
  console.log(run.id, step.id, step.config?.title);
}
for run in workflow.runs():
    if run.data["status"] != "waiting":
        continue
    step = next(s for s in run.data["steps"] if s["status"] == "waiting")
    print(run.id, step["id"], (step.get("config") or {}).get("title"))
انتظار انتظار أجل أجل أجل

لا يوجد وقت لخطوات بشرية، هذا متعمد، موافقة انتهت من تلقاء نفسها من شأنها أن تسمح بسلسلة من المماطلة مع أي شخص لم يُطلب منها ذلك، فإدراج فترات الانتظار هي كيفية بناء واجهة صندوق داخلي.

محو تدفق العمل يترك عملياته

التاريخ مُحافظ عليه، واحصل على مُحدّد له أنتRunRun حتى بعد زوال تدفق العمل