Skip to content

WorkflowInstanceCreateOptions

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

PARAMS = unknown

optional id: string

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

An id for your Workflow instance. Must be unique within the Workflow.


optional params: PARAMS

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

The event payload the Workflow instance is triggered with


optional retention: object

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

The retention policy for Workflow instance. Defaults to the maximum retention period available for the owner’s account.

optional errorRetention: WorkflowSleepDuration

optional successRetention: WorkflowSleepDuration