sleep

Pause execution for a fixed or randomised number of seconds.

commands:
# Sleep for 60 seconds
  - type: sleep
    seconds: 60
seconds

Number of seconds to sleep. When random is True, this serves as the upper bound of the random range.

Type:

int

Default:

1

Required:

True

random

Sleep for a random duration between min_sec and seconds instead of a fixed duration.

Type:

bool

Default:

False

Required:

False

min_sec
commands:
# Sleep for a random duration between 30 and 60 seconds
  - type: sleep
    seconds: 60
    min_sec: 30
    random: True
cmd

This option is ignored. It is only present to allow the use of the generic command syntax and does not have any effect on the behavior of the command.

Type:

str

Default:

sleep