@@ -11,13 +11,12 @@ class JitterRetry(RetryOptionsBase):
11
11
12
12
def __init__ (
13
13
self ,
14
- attempts : Optional [ int ] = 3 , # How many times we should retry
15
- start_timeout : Optional [ float ] = 0.1 , # Base timeout time, then it exponentially grow
16
- max_timeout : Optional [ float ] = 5.0 , # Max possible timeout between tries
14
+ attempts : int = 3 , # How many times we should retry
15
+ start_timeout : float = 0.1 , # Base timeout time, then it exponentially grow
16
+ max_timeout : float = 5.0 , # Max possible timeout between tries
17
17
statuses : Optional [set [int ]] = None , # On which statuses we should retry
18
18
exceptions : Optional [set [type [Exception ]]] = None , # On which exceptions we should retry
19
19
methods : Optional [set [str ]] = None , # On which HTTP methods we should retry
20
- random_interval_size : Optional [float ] = 2.0 , # size of interval for random component
21
20
retry_all_server_errors : bool = True ,
22
21
evaluate_response_callback : Optional [EvaluateResponseCallbackType ] = None ,
23
22
) -> None :
@@ -32,7 +31,6 @@ def __init__(
32
31
33
32
self ._start_timeout : float = start_timeout
34
33
self ._max_timeout : float = max_timeout
35
- self ._random_interval_size = random_interval_size
36
34
37
35
def get_timeout (
38
36
self ,
0 commit comments