---
sidebar:
  label: roboto.http.retry
  order: 8
title: roboto.http.retry
---
## Module Contents

### RetryWaitFn

```python
roboto.http.retry.RetryWaitFn
```

`from roboto.http.retry import RetryWaitFn`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/http/retry.py#L12-L12)

### default_retry_wait_ms()

```python
def roboto.http.retry.default_retry_wait_ms(
    retry_state: tenacity.RetryCallState,
    _exc: Optional[BaseException],
) -> float
```

`from roboto.http.retry import default_retry_wait_ms`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/http/retry.py#L15-L25)

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

**Parameters**

- **retry_state** (`tenacity.RetryCallState`)
- **`_exc`** (`Optional[BaseException]`)

**Returns**

- `float`
