Skip to content

Commit 756de1b

Browse files
Set default max_delay to one minute
1 parent 4961c6c commit 756de1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kazoo/retry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class KazooRetry(object):
4242
)
4343

4444
def __init__(self, max_tries=1, delay=0.1, backoff=2, max_jitter=0.8,
45-
max_delay=3600, ignore_expire=True, sleep_func=time.sleep,
45+
max_delay=60, ignore_expire=True, sleep_func=time.sleep,
4646
deadline=None, interrupt=None):
4747
"""Create a :class:`KazooRetry` instance for retrying function
4848
calls
@@ -55,7 +55,7 @@ def __init__(self, max_tries=1, delay=0.1, backoff=2, max_jitter=0.8,
5555
:param max_jitter: Additional max jitter period to wait between
5656
retry attempts to avoid slamming the server.
5757
:param max_delay: Maximum delay in seconds, regardless of other
58-
backoff settings. Defaults to one hour.
58+
backoff settings. Defaults to one minute.
5959
:param ignore_expire:
6060
Whether a session expiration should be ignored and treated
6161
as a retry-able command.

0 commit comments

Comments
 (0)