Get the latest tech news
Show HN: Retry a command with exponential backoff and jitter (+ Starlark exprs)
Retry a command with exponential backoff and jitter (+ Starlark expressions) - dbohdan/recur
recur is a command-line tool that runs a single command repeatedly until it succeeds or no more attempts are left. You can define the success condition using an expression in Starlark, a small scripting language derived from Python. In the following example we stop early and do not retry when the command's exit code indicates incorrect usage or a problem with the installation.
Or read this on Hacker News