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
retry_backoff $YOUR_COMMAND# default of 5 retries, starting with 1 second timeout
ATTEMPTS=3 TIMEOUT=10 retry_backoff $YOUR_COMMAND# 3 attempts with a starting timeout of 10 seconds
Sample
$ ATTEMPTS=3 TIMEOUT=10 retry_backoff retry_backoff curl http://foobar.none
curl: (6) Could not resolve host: foobar.none
Failure! Retrying in 1..
curl: (6) Could not resolve host: foobar.none
Failure! Retrying in 2..
curl: (6) Could not resolve host: foobar.none
Failure! Retrying in 4..
curl: (6) Could not resolve host: foobar.none
Failure! Retrying in 8..
curl: (6) Could not resolve host: foobar.none
Failure! Retrying in 16..