Skip to content

Commit

Permalink
feat: add remaining workflow instance status types (#2948)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 authored Oct 18, 2024
1 parent b0bdd45 commit eb85ef9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/cloudflare/internal/workflows.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ interface WorkflowInstanceCreateOptions {

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;
Expand Down
6 changes: 4 additions & 2 deletions types/defines/workflows.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ interface WorkflowInstanceCreateOptions {

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;
Expand Down

0 comments on commit eb85ef9

Please sign in to comment.