Skip to content

Commit 543fe38

Browse files
bruxodasilvaharshil1712
authored andcommitted
Workflows: Improve cpu time limits (#18352)
* improve the explanation about cpu time limits and its relationship withg the duration of a Workflow
1 parent e7731fd commit 543fe38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/docs/workflows/reference/limits.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Many limits are inherited from those applied to Workers scripts and as documente
1616
| ----------------------------------------- | ----------------------- | --------------------- |
1717
| Workflow class definitions per script | 1MB 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)
1818
| Total scripts per account | 100 | 500 (shared with [Worker script limits](/workers/platform/limits/#account-plan-limits) |
19-
| Compute time per Workflow | 10 seconds | 30 seconds of [active CPU time](/workers/platform/limits/#cpu-time) |
20-
| Duration (wall clock) per `step` | Unlimited | Unlimited - e.g. waiting on network I/O calls or querying a database |
19+
| Compute time per step [^3] | 10 seconds | 30 seconds of [active CPU time](/workers/platform/limits/#cpu-time) |
20+
| Duration (wall clock) per step [^3] | Unlimited | Unlimited - for example, waiting on network I/O calls or querying a database |
2121
| Maximum persisted state per step | 1MiB (2^20 bytes) | 1MiB (2^20 bytes) |
2222
| Maximum state that can be persisted per Workflow instance | 100MB | 1GB |
2323
| Maximum `step.sleep` duration | 365 days (1 year) [^1] |
@@ -31,4 +31,6 @@ Many limits are inherited from those applied to Workers scripts and as documente
3131

3232
[^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.
3333

34+
[^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.
35+
3436
<Render file="limits_increase" product="workers" />

0 commit comments

Comments
 (0)