Skip to content

Commit

Permalink
Update connections.py (#396)
Browse files Browse the repository at this point in the history
Allows values like `float('inf')` to retry infinite. This can be useful in cluster contexts where a redis service might temporarily not available for some reason but you might not want the worker to crash on that but waiting until redis is available again
  • Loading branch information
vvmruder authored Apr 1, 2024
1 parent d4a37f3 commit 3de6d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arq/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def pool_factory(*args: Any, **kwargs: Any) -> ArqRedis:
except (ConnectionError, OSError, RedisError, asyncio.TimeoutError) as e:
if retry < settings.conn_retries:
logger.warning(
'redis connection error %s:%s %s %s, %d retries remaining...',
'redis connection error %s:%s %s %s, %s retries remaining...',
settings.host,
settings.port,
e.__class__.__name__,
Expand Down

0 comments on commit 3de6d87

Please sign in to comment.