From 5b17f09f520cd14db210b8badd965817e3a18d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Duarte?= Date: Fri, 18 Oct 2024 15:30:54 +0100 Subject: [PATCH] feat: add remaining workflow instance status types --- types/defines/workflows.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/defines/workflows.d.ts b/types/defines/workflows.d.ts index db83df77450..82d22df05d8 100644 --- a/types/defines/workflows.d.ts +++ b/types/defines/workflows.d.ts @@ -27,12 +27,14 @@ declare abstract class Workflow { type InstanceStatus = { status: - | "queued" + | "queued" // means that instance is waiting to be started (see concurrency limits) | "running" | "paused" | "errored" - | "terminated" + | "terminated" // user terminated the instance while it was runnign | "complete" + | "waiting" // instance is hibernating and waiting for sleep or event to finish + | "waitingForPause" // instance is finishing the current work to pause | "unknown"; error?: string; output?: object;