|
|
None | __init__ (self, typing.Union[int, float] multiplier=1, _utils.time_unit_type max=_utils.MAX_WAIT, typing.Union[int, float] exp_base=2, _utils.time_unit_type min=0) |
| |
| float | __call__ (self, "RetryCallState" retry_state) |
| |
|
"wait_combine" | __add__ (self, "wait_base" other) |
| |
|
typing.Union["wait_combine", "wait_base"] | __radd__ (self, "wait_base" other) |
| |
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.