logoalt Hacker News

Terrettayesterday at 1:03 PM5 repliesview on HN

For Python, consider Tenacity: https://tenacity.readthedocs.io/en/latest/

At the CLI, this is nice for not depending on Node.


Replies

derhuerstyesterday at 1:13 PM

for Node.js, consider retry: https://www.npmjs.com/package/retry

show 1 reply
derr1yesterday at 1:35 PM

Would also recommend opnieuw: https://github.com/channable/opnieuw

maleldilyesterday at 4:42 PM

backoff is good, too: https://github.com/litl/backoff

I moved away from tenacity because of type-checking issues. I might check out stamina next time.

ddorian43yesterday at 4:04 PM

Stamina for good defaults on Tenacity: https://github.com/hynek/stamina

lordsworkyesterday at 1:05 PM

Does recur depend on node?