Skip to content

Limits

Limits that apply to authoring, deploying, and running Workflows are detailed below.

Many limits are inherited from those applied to Workers scripts and as documented in the Workers limits documentation.

FeatureWorkers FreeWorkers Paid
Workflow class definitions per script3MB max script size per Worker size limits10MB max script size per Worker size limits
Total scripts per account100500 (shared with Worker script limits
Compute time per step 110 seconds30 seconds of active CPU time
Duration (wall clock) per step 1UnlimitedUnlimited - for example, waiting on network I/O calls or querying a database
Maximum persisted state per step1MiB (2^20 bytes)1MiB (2^20 bytes)
Maximum state that can be persisted per Workflow instance100MB1GB
Maximum step.sleep duration365 days (1 year) 2365 days (1 year) 2
Maximum steps per Workflow 3512 2512 2
Maximum Workflow executions100,000 per day shared with Workers daily limitUnlimited
Concurrent Workflow instances (executions)25100 2
Retention limit for completed Workflow state3 days30 days 4
Maximum length of a Workflow ID 564 characters64 characters

Footnotes

  1. A Workflow instance can run forever, as long as each step does not take more than the CPU time limit and the maximum number of steps per Workflow is not reached. 2

  2. This limit will be reviewed and revised during the open beta for Workflows. Follow the Workflows changelog for updates. 2 3 4 5

  3. step.sleep do not count towards the max. steps limit

  4. Workflow state and logs will be retained for 3 days on the Workers Free plan and for 7 days on the Workers Paid plan.

  5. Match pattern: ^[a-zA-Z0-9_][a-zA-Z0-9-_]*$