retry backoff strategies #216
Labels
type: core
core functionality
type: decorator
step decorators
up next
features that are more or less on the TODO list
Projects
Currently the
retry
decorator works with a single static sleep interval.Add backoff strategies better to enable linear, exponential sleep intervals in between retries with randomization (jitter).
Out of box, provide (assuming sleep interval is
x
and iteration/retry counter isn
)sleep = x
.sleep = [x0, x1, x2]
sleep picks the next value from a list. keep on returning last value when reaches the end and more retries necessary.sleep = nx
sleep = (2**n)*x
In line with pypyr's ethos for complete customisation, also allow operator to create their own custom back-off strategy that will dynamically load as do steps/content parsers etc.
Thus,
The text was updated successfully, but these errors were encountered: