Skip to content

Commit 745773a

Browse files
committed
added info that step sleep do not count towards steps limit.
1 parent 0feed50 commit 745773a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/content/docs/workflows/build/workers-api.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ Refer to the [events and parameters](/workflows/build/events-and-parameters/) do
6969
* `name` - the name of the step.
7070
* `timestamp` - a JavaScript `Date` object or seconds from the Unix epoch to sleep the Workflow instance until.
7171

72+
:::note
73+
74+
`step.sleep` and `step.sleepUntil` methods do not count towards the maximum Workflow steps limit. More information is available [here](/workflows/reference/limits/) regarding the limits imposed to Workflow.
75+
76+
:::
77+
7278
## WorkflowStepConfig
7379

7480
```ts

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Many limits are inherited from those applied to Workers scripts and as documente
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] | 365 days (1 year) [^1] |
24-
| Maximum steps per Workflow | 512 [^1] | 512 [^1] |
24+
| Maximum steps per Workflow [^5] | 512 [^1] | 512 [^1] |
2525
| Maximum Workflow executions | 100,000 per day [shared with Workers daily limit](/workers/platform/limits/#worker-limits) | Unlimited |
2626
| Concurrent Workflow instances (executions) | 25 | 100 [^1] |
2727
| Retention limit for completed Workflow state | 3 days | 30 days [^2] |
@@ -35,4 +35,6 @@ Many limits are inherited from those applied to Workers scripts and as documente
3535

3636
[^4]: Match pattern: _```^[a-zA-Z0-9_][a-zA-Z0-9-_]*$```_
3737

38+
[^5]: `step.sleep` do not count towards the max. steps limit
39+
3840
<Render file="limits_increase" product="workers" />

0 commit comments

Comments
 (0)