Browse Source

Might fix worker hanging for redis

Raghuram Srinivasan 9 years ago
parent
commit
b4667a2561
1 changed files with 1 additions and 0 deletions
  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):