obelisk.strategies.retry.RetryStrategy¶
- class obelisk.strategies.retry.RetryStrategy[source]¶
Bases:
ABC
Base class for all retry strategies, whether predefined or user-made. The strategy has as its sole purpose to create instances of
RetryEvaluator
that can be used for a specific operation.Each individual failable operation will request a separate evaluator using the make method.
Methods
make
()Create an instance of a RetryEvaluator.
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)make
()Create an instance of a RetryEvaluator.
- abstractmethod make() RetryEvaluator [source]¶
Create an instance of a RetryEvaluator. Custom strategies should also subclass RetryEvaluator