On this page
Get Involved
sleep
A sleep step can be used to wait for a defined amount of time. You will usually want to add an explicit dependency when using a sleep step.
Arguments
Argument | Type | Optional? | Description |
---|---|---|---|
duration | String or Number | Required | The amount of time to sleep as an integer or a duration string. If the duration is an integer, it is interpreted as the number of milliseconds. |
This step also supports the common step arguments and attributes.
Duration Strings
The duration argument may be an integer or a Go duration string. If the duration is an integer, it will be interpreted as the number of milliseconds:
You may instead pass a string that specifies the number and type of units. Valid time units are ns, us (or µs), ms, s, m, h:
You can even include multiple units: