Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 417 Bytes
#!/usr/bin/env python
# encoding: utf-8
import random
from requests.packages.urllib3.util.retry import Retry
class RetryWithFullJitter(Retry):
"""A Retry object that applies random "full" jitter to backoff rates.
Based on:
def get_backoff_time(self):
value = super().get_backoff_time()
return random.uniform(0.0, value)