OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, multiplier=1, max=_utils.MAX_WAIT, exp_base=2, min=0) |
def | __call__ (self, retry_state) |
![]() | |
def | __add__ (self, other) |
def | __radd__ (self, other) |
Data Fields | |
multiplier | |
min | |
max | |
exp_base | |
Wait strategy that applies exponential backoff. It allows for a customized multiplier and an ability to restrict the upper and lower limits to some maximum and minimum value. The intervals are fixed (i.e. there is no jitter), so this strategy is suitable for balancing retries against latency when a required resource is unavailable for an unknown duration, but *not* suitable for resolving contention between multiple processes for a shared resource. Use wait_random_exponential for the latter case.
def __init__ | ( | self, | |
multiplier = 1 , |
|||
max = _utils.MAX_WAIT , |
|||
exp_base = 2 , |
|||
min = 0 |
|||
) |
def __call__ | ( | self, | |
retry_state | |||
) |
Reimplemented from wait_base.
Reimplemented in wait_random_exponential.
exp_base |
max |
min |
multiplier |