浏览代码

Might fix worker hanging for redis

Raghuram Srinivasan 9 年之前
父节点
当前提交
b4667a2561
共有 1 个文件被更改,包括 1 次插入0 次删除
  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
         # Query parameters override other parameters
         connparams.update(query)
         connparams.update(query)
+        connparams.update(socket_timeout=5)
         return connparams
         return connparams
 
 
     def get(self, key):
     def get(self, key):