obelisk.strategies.retry.RetryEvaluator

class obelisk.strategies.retry.RetryEvaluator[source]

Bases: ABC

This class performs the actual retry handling. It can keep track of internal state as it so wishes, to perform the function of should_retry().

Methods

should_retry()

This method should return True if the strategy should retry, but may wait internally if it deems necessary.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

should_retry()

This method should return True if the strategy should retry, but may wait internally if it deems necessary.

abstractmethod async should_retry() bool[source]

This method should return True if the strategy should retry, but may wait internally if it deems necessary.