You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,6 +111,16 @@ The `-max-time` flag limits the maximum total time that `retry` will run for. A
106
111
> $ retry -max-time=60s https://example.com
107
112
>```
108
113
114
+
### Initial delay
115
+
116
+
The `-delay` flag inserts a one-time delay before initial starting to run commands.
117
+
118
+
> Run `wget https://example.com`, but start only after initially sleeping for 15 seconds.
119
+
>
120
+
>```bash
121
+
> $ retry -delay=15s wget https://example.com
122
+
>```
123
+
109
124
### Sleep between attempts
110
125
111
126
The `-sleep` flag inserts a timed delay between command runs.
@@ -168,10 +183,10 @@ Lastly, the `-quiet` flag silences all output (STDOUT and STDERR) from the comma
168
183
169
184
### Altogether now
170
185
171
-
> Run `wget https://example.com` a maximum of **10** times. Each run can take a maximum of **15 seconds**, and a total of **2 minutes**. Sleep for **5 seconds** between failures with exponential **backoff**. Lastly, require that the command succeeds **3 times** in a row.
186
+
> Run `wget https://example.com` a maximum of **10** times. Each run can take a maximum of **15 seconds**, and a total of **2 minutes**. Delay for **15 seconds** before starting. Sleep for **5 seconds** between failures with exponential **backoff**. Lastly, require that the command succeeds **3 times** in a row.
0 commit comments