Ask Solem 13 years ago
parent
commit
d932467544
2 changed files with 2 additions and 1 deletions
  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)