backoff
backoff copied to clipboard
Python library providing function decorators for configurable backoff and retry
Closes #145. Possibly also closes #72, but I'm not 100% because it does not address @michaeltcoelho's second point about the empty `raise` statement.
When a function yields results from a failure prone process (i.e., a REST API pagination series), it would be ideal to bake the retry into that iteration in a clean...
How can one customize backoff.expo, e.g. max_value?
Thank you for maintaining this project! I couldn't find usage of `backoff.runtime` documented anywhere and only found references in the changelog and release notes. Having this in the readme might...
When writing a `backoff_handler`, it would be very useful for us to have access to some information about the failed response. Currently, the availables details are as follows. ``` class...
[`pyupgrade` automatically upgrades syntax for newer versions of the language.](https://github.com/asottile/pyupgrade#pyupgrade) `# coding:utf-8` is a [no-op in Python 3](https://github.com/asottile/pyupgrade#-coding--comment) because all Python source files are utf-8 by default.
Because Travis CI seems to be on vacation... https://travis-ci.org/github/litl/backoff/builds Test results: https://github.com/cclauss/backoff/actions
Would be great to know which exception was thrown in handlers from decorator exception tuple in `backoff.on_exception`. Maybe receive exception as extra kwargs in _call_handlers. What you guys think?
Can you add a link to the documentation in the README and on the PyPi page please
Follow up to #124 In its current form, backoff doesn't allow to use Retry-After headers in asynchronous code. It might be my lack of understanding or a problem with `aiohttp`,...