Explorar el Código

Might fix worker hanging for redis

Raghuram Srinivasan hace 10 años
padre
commit
b4667a2561
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      celery/backends/redis.py

+ 1 - 0
celery/backends/redis.py

@@ -131,6 +131,7 @@ class RedisBackend(KeyValueStoreBackend):
 
         # Query parameters override other parameters
         connparams.update(query)
+        connparams.update(socket_timeout=5)
         return connparams
 
     def get(self, key):