Add new option in the worker setup, called backoff_function. You can pass any callable object to it (a method, a lambda, a class that implements call, etc.) and it will be called receiving the current attempt number.
The default backoff function, for example, is a lambda like that:
Add new option in the worker setup, called
backoff_function
. You can pass anycall
able object to it (a method, a lambda, a class that implementscall
, etc.) and it will be called receiving the current attempt number.The default backoff function, for example, is a lambda like that: