Skip to content

WorkflowInstance

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10172

new WorkflowInstance(): WorkflowInstance

WorkflowInstance

id: string

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10173

pause(): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10177

Pause the instance.

Promise<void>


restart(): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10189

Restart the instance.

Promise<void>


resume(): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10181

Resume the instance. If it is already running, an error will be thrown.

Promise<void>


sendEvent(__namedParameters): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10197

Send an event to this instance.

unknown

string

Promise<void>


status(): Promise<InstanceStatus>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10193

Returns the current status of the instance.

Promise<InstanceStatus>


terminate(): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:10185

Terminate the instance. If it is errored, terminated or complete, an error will be thrown.

Promise<void>