Ask Solem 13 年之前
父节点
当前提交
d932467544
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      celery/app/defaults.py
  2. 1 0
      celery/backends/redis.py

+ 1 - 1
celery/app/defaults.py

@@ -112,7 +112,7 @@ NAMESPACES = {
         "REDIS_PORT": Option(None, type="int"),
         "REDIS_DB": Option(None, type="int"),
         "REDIS_PASSWORD": Option(None, type="string"),
-        "REDIS_MAX_CONNECTIONS": Options(None, type="int"),
+        "REDIS_MAX_CONNECTIONS": Option(None, type="int"),
         "RESULT_BACKEND": Option(None, type="string"),
         "RESULT_DB_SHORT_LIVED_SESSIONS": Option(False, type="bool"),
         "RESULT_DBURI": Option(),

+ 1 - 0
celery/backends/redis.py

@@ -62,6 +62,7 @@ class RedisBackend(KeyValueStoreBackend):
         self.max_connections = (max_connections
                                 or _get("MAX_CONNECTIONS")
                                 or self.max_connections)
+
     def get(self, key):
         return self.client.get(key)