Skip to content

Commit

Permalink
Change max value for retry delay
Browse files Browse the repository at this point in the history
  • Loading branch information
hovaesco committed Jul 8, 2024
1 parent f6d59e8 commit 7fe35b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trino/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def __repr__(self):

class _DelayExponential(object):
def __init__(
self, base=0.1, exponent=2, jitter=True, max_delay=2 * 3600 # 100ms # 2 hours
self, base=0.1, exponent=2, jitter=True, max_delay=1800 # 100ms # 30 min
):
self._base = base
self._exponent = exponent
Expand All @@ -340,7 +340,7 @@ def __call__(self, attempt):

class _RetryWithExponentialBackoff(object):
def __init__(
self, base=0.1, exponent=2, jitter=True, max_delay=2 * 3600 # 100ms # 2 hours
self, base=0.1, exponent=2, jitter=True, max_delay=1800 # 100ms # 30 min
):
self._get_delay = _DelayExponential(base, exponent, jitter, max_delay)

Expand Down

0 comments on commit 7fe35b4

Please sign in to comment.