Selaa lähdekoodia

Merge pull request #2679 from raghuramos1987/possible_fix_for_redis

Might fix worker hanging for redis
Omer Katz 9 vuotta sitten
vanhempi
commit
96d6457e5c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      celery/backends/redis.py

+ 1 - 0
celery/backends/redis.py

@@ -85,6 +85,7 @@ class RedisBackend(KeyValueStoreBackend):
             'port': _get('PORT') or 6379,
             'db': _get('DB') or 0,
             'password': _get('PASSWORD'),
+            'socket_timeout': _get('SOCKET_TIMEOUT'),
             'max_connections': self.max_connections,
         }
         if url: