From 96a51dbc4dbe02ea0de21790b13e8eca6b023e28 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 --- src/cloudflare/internal/workflows.d.ts | 6 ++++-- types/defines/workflows.d.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/cloudflare/internal/workflows.d.ts b/src/cloudflare/internal/workflows.d.ts index 319200d6e14..6519d21a494 100644 --- a/src/cloudflare/internal/workflows.d.ts +++ b/src/cloudflare/internal/workflows.d.ts @@ -41,12 +41,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 running | '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; 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;