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

20 Replies, 1968 Views

Don’t sleep on `urllib3.util.retry` if you’re working with requests! It’s baked in and works great for HTTP stuff.

For everything else, `tenacity` is the way. Their docs even show how to retry on custom conditions, which is slick.

Logging: I’m team "log it all" but with DEBUG level. Prod gets ERROR-only.

Messages In This Thread



Users browsing this thread: 1 Guest(s)