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

20 Replies, 1889 Views

Wow, thanks for all the insights! Definitely gonna ditch my janky while loop for `tenacity`—sounds like it covers everything I need.

Quick follow-up: Anyone got tips for testing retry logic? Mocking failures feels messy, but I don’t wanna rely on flaky APIs for tests.

Also, big +1 to the logging tips. DEBUG for dev, ERROR for prod makes so much sense.

Y’all rock! 🚀



Users browsing this thread: 1 Guest(s)