roboto.http.retry#

Module Contents#

roboto.http.retry.RetryWaitFn#
roboto.http.retry.default_retry_wait_ms(retry_state, _exc)#

Returns sleep time in ms using exponential backoff with full jitter, as described in: https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/

Parameters:
  • retry_state (tenacity.RetryCallState)

  • _exc (Optional[BaseException])

Return type:

float