What's the best way to implement a python retry mechanism for failed operations? or How do you handle

20 Replies, 1954 Views

I’m a fan of the "let it crash" philosophy, but when you *must* retry, keep it simple.

`@retry(wait_fixed=1000, stop_max_attempt_number=3)` from the `retrying` lib covers 90% of cases.

Logging: Only on final failure. No one needs to see "attempt 1/3 failed" a million times in prod.

Messages In This Thread



Users browsing this thread: 1 Guest(s)