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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of command

command

Photo of + Starlark

+ Starlark

Photo of + Starlark exprs

+ Starlark exprs

Related news:

News photo

Marine pilot loses command after ejecting from F-35B that kept flying

News photo

Killing the Command message: should we use Events or Documents? (2007)

News photo

Lenovo’s Auto Twist concept laptop has a lid that can swivel and bow down at your command