Created
August 30, 2023 16:11
-
-
Save justinchuby/de54ba98fd85b5527128f3c38df868cc to your computer and use it in GitHub Desktop.
Bash retry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/pytorch/pytorch/pull/106984/files | |
retry () { | |
"$@" || (sleep 10 && "$@") || (sleep 20 && "$@") || (sleep 40 && "$@") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment