Fixed schedule
Fixed delay is the default schedule. It sleeps for a constant amount of time between attempts.
| Attempt | Delay |
|---|---|
| 0 | 1 |
| 1 | 1 |
| 2 | 1 |
Specifying durations
Durations in attempt can include units, such as 5min. Durations without units are assumed to be
in seconds. 300 would be interpreted as 300 seconds. Multiple units can be used together such as
1hr30m. You may include whitespace, so 1hr 30m is also valid.
The following units are supported:
- Hours (
horhr) - Minutes (
mormin) - Seconds (
s) - Milliseconds (
ms) - Nanoseconds (
ns)
Example
# Because it is the default, specifying `fixed` is optional
attempt /bin/false
attempt fixed /bin/false
# Change the wait time from the default of 1 second to 15 seconds
attempt fixed -w 15s /bin/false
attempt fixed --wait 15s /bin/false
Arguments
-w --wait <DURATION>
The amount of time to sleep between attempts.