Skip to content

Commit

Permalink
fix(redis-connection): increase redis retry strategy backoff (#2546) …
Browse files Browse the repository at this point in the history
…[python]
  • Loading branch information
klaemo committed Apr 26, 2024
1 parent a7a7f4f commit 6cf7712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/bullmq/redis_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RedisConnection:

def __init__(self, redisOpts: dict | str | redis.Redis = {}):
self.version = None
retry = Retry(ExponentialBackoff(), 3)
retry = Retry(ExponentialBackoff(cap=20, base=1), 20)
retry_errors = [BusyLoadingError, ConnectionError, TimeoutError]

if isinstance(redisOpts, redis.Redis):
Expand Down

0 comments on commit 6cf7712

Please sign in to comment.