backoff
backoff copied to clipboard
Customize backoff.expo
How can one customize backoff.expo, e.g. max_value?
Please read the README. It's the best documentation for now. Short answer is the keyword args of the wait generators (backoff.expo, backoff.expo, etc. can be specified as arguments to the decorator itself.
@backoff.on_exception(backoff.expo, ValueError, max_value=10)
def do_something():
# ...