Does sleep with backoff_factor actually improve performance in long-running tasks? or How effective i

18 Replies, 1890 Views

Meh, I’ve seen both sides. sleep with backoff_factor is great in theory, but if your task is failing for non-transient reasons (like bad data), no amount of backoff will help.

Use it for APIs, skip it for stuff like file ops.

`requests-retry` is a nice Python wrapper if you’re lazy like me.

Messages In This Thread



Users browsing this thread: 1 Guest(s)