Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflows: reflect that step.sleep do not count towards max step limits #18528

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/content/docs/workflows/build/workers-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ Refer to the [events and parameters](/workflows/build/events-and-parameters/) do
* `name` - the name of the step.
* `timestamp` - a JavaScript `Date` object or seconds from the Unix epoch to sleep the Workflow instance until.

:::note

`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.
bruxodasilva marked this conversation as resolved.
Show resolved Hide resolved

:::

## WorkflowStepConfig

```ts
Expand Down
4 changes: 3 additions & 1 deletion src/content/docs/workflows/reference/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Many limits are inherited from those applied to Workers scripts and as documente
| Maximum persisted state per step | 1MiB (2^20 bytes) | 1MiB (2^20 bytes) |
| Maximum state that can be persisted per Workflow instance | 100MB | 1GB |
| Maximum `step.sleep` duration | 365 days (1 year) [^1] | 365 days (1 year) [^1] |
| Maximum steps per Workflow | 512 [^1] | 512 [^1] |
| Maximum steps per Workflow [^5] | 512 [^1] | 512 [^1] |
| Maximum Workflow executions | 100,000 per day [shared with Workers daily limit](/workers/platform/limits/#worker-limits) | Unlimited |
| Concurrent Workflow instances (executions) | 25 | 100 [^1] |
| Retention limit for completed Workflow state | 3 days | 30 days [^2] |
Expand All @@ -35,4 +35,6 @@ Many limits are inherited from those applied to Workers scripts and as documente

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

[^5]: `step.sleep` do not count towards the max. steps limit

<Render file="limits_increase" product="workers" />
Loading