You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And that doesn't work as expected! There are no retries at all on ConnectionError exceptions!
Here's what happens:
When executing a command, an error handler is passed to call_with_retry. That error handler is the _disconnect_raise function, which re-raises the exception if that exception is not a TimeoutError. Meaning that, in case of a ConnectionError, call_with_retry will raise and exit before having a chance to retry the operation.
The text was updated successfully, but these errors were encountered:
We use
redis.asyncio.StrictRedis
andredis.asyncio.BlockingConnectionPool
, with some specificRetry
configuration:And that doesn't work as expected! There are no retries at all on
ConnectionError
exceptions!Here's what happens:
When executing a command, an error handler is passed to
call_with_retry
. That error handler is the_disconnect_raise
function, which re-raises the exception if that exception is not aTimeoutError
. Meaning that, in case of aConnectionError
,call_with_retry
will raise and exit before having a chance to retry the operation.The text was updated successfully, but these errors were encountered: