Forráskód Böngészése

Adds missing setting REDIS_MAX_CONNECTIONS to config map

Ask Solem 13 éve
szülő
commit
e0b62917ee
2 módosított fájl, 9 hozzáadás és 0 törlés
  1. 1 0
      celery/app/defaults.py
  2. 8 0
      docs/configuration.rst

+ 1 - 0
celery/app/defaults.py

@@ -112,6 +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"),
         "RESULT_BACKEND": Option(None, type="string"),
         "RESULT_DB_SHORT_LIVED_SESSIONS": Option(False, type="bool"),
         "RESULT_DBURI": Option(),

+ 8 - 0
docs/configuration.rst

@@ -371,6 +371,14 @@ CELERY_REDIS_PASSWORD
 
 Password used to connect to the database.
 
+.. setting:: CELERY_REDIS_MAX_CONNECTIONS
+
+CELERY_REDIS_MAX_CONNECTIONS
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Maximum number of connections available in the Redis connection
+pool used for sending and retrieving results.
+
 Example configuration
 ~~~~~~~~~~~~~~~~~~~~~