MaxBondABE/attempt: CLI for retrying fallible commands


attempt allows you to retry fallible commands with a delay.

attempt [BACKOFF] [OPTIONS] [COMMAND]...

# Rerun database migrations if the server was not ready
attempt --retry-if-contains "server not ready" sqlx migrate

# Use an exponential backoff
attempt exponential --retry-if-contains "server not ready" sqlx migrate



Source link