Skip to content

Commit 4cd5a19

Browse files
authored
workflows: step.sleep takes the number argument as milliseconds
I tested and noticed this issue.
1 parent ae622eb commit 4cd5a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workflows/build/sleeping-and-retrying.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Use `step.sleep` to have a Workflow sleep for a relative period of time:
2626
await step.sleep("sleep for a bit", "1 hour")
2727
```
2828

29-
The second argument to `step.sleep` accepts both `number` (seconds) or a human-readable format, such as "1 minute" or "26 hours". The accepted units for `step.sleep` when used this way are as follows:
29+
The second argument to `step.sleep` accepts both `number` (milliseconds) or a human-readable format, such as "1 minute" or "26 hours". The accepted units for `step.sleep` when used this way are as follows:
3030

3131
```ts
3232
| "second"

0 commit comments

Comments
 (0)