added retry_on_timeout and socket_keepalive to redis connection#5952
Conversation
|
I've updated a project to the most recent Celery version (4.4.1) and suddenly get these errors: As far as I can tell the version of the When I upgraded I updated the following packages: Not sure what's going on. I'm not seeing anyone else with this issue in all the relevant issue trackers. |
|
Looking a bit further this seems very similar to #2903 It appears that not all Redis connection types support the e.g. |
| To retry reading/writing operations on TimeoutError to the Redis server, | ||
| used by the redis result backend. | ||
|
|
||
| .. setting:: socket_keepalive |
There was a problem hiding this comment.
@Seleznev-nvkz per line 188 in celery/backends/redis.py shouldn't this be redis_socket_keepalive rather than socket_keepalive?
Also should there be . versionadded:: 4.4.1 for both of these added settings?
There was a problem hiding this comment.
Great catch! Thank you.
Thanks for your feedback! Sorry for long response - will answer in the issue. |
resolve #5936
Added two parameters to provide to Redis connection. Also, added description to docs.