You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Workflow class definitions per script | 3MB max script size per [Worker size limits](/workers/platform/limits/#account-plan-limits) | 10MB max script size per [Worker size limits](/workers/platform/limits/#account-plan-limits)
18
18
| Total scripts per account | 100 | 500 (shared with [Worker script limits](/workers/platform/limits/#account-plan-limits)|
19
-
| Compute time per step [^3]| 10 seconds | 30 seconds of [active CPU time](/workers/platform/limits/#cpu-time)|
19
+
| Compute time per step [^3]| 10 seconds | 30 seconds (default) / configurable to 5 minutes of [active CPU time](/workers/platform/limits/#cpu-time)|
20
20
| Duration (wall clock) per step [^3]| Unlimited | Unlimited - for example, waiting on network I/O calls or querying a database |
21
21
| Maximum persisted state per step | 1MiB (2^20 bytes) | 1MiB (2^20 bytes) |
@@ -35,7 +35,7 @@ Many limits are inherited from those applied to Workers scripts and as documente
35
35
36
36
[^2]: Workflow state and logs will be retained for 3 days on the Workers Free plan and for 7 days on the Workers Paid plan.
37
37
38
-
[^3]: 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.
38
+
[^3]: 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.
39
39
40
40
[^4]: Match pattern: _```^[a-zA-Z0-9_][a-zA-Z0-9-_]*$```_
41
41
@@ -44,3 +44,25 @@ Many limits are inherited from those applied to Workers scripts and as documente
44
44
[^6]: Workflows will return a HTTP 429 rate limited error if you exceed the rate of new Workflow instance creation.
45
45
46
46
<Renderfile="limits_increase"product="workers" />
47
+
48
+
### Increasing Workflow CPU limits
49
+
50
+
Workflows are Worker scripts, and share the same [per invocation CPU limits](/workers/platform/limits/#worker-limits) as any Workers do. Note that CPU time is active processing time: not time spent waiting on network requests, storage calls, or other general I/O, which don't count towards your CPU time or Workflows compute consumption.
51
+
52
+
By default, the maximum CPU time per Workflow invocation is set to 30 seconds, but can be increased for all invocations associated with a Workflow definition by setting `limits.cpu_ms` in your Wrangler configuration:
0 commit comments