Explorar el Código

Mention CELERY_DEFAULT_RATE_LIMIT in configuration docs. Thanks to kmike! Closes #77

Ask Solem hace 15 años
padre
commit
eaf019587a
Se han modificado 2 ficheros con 10 adiciones y 2 borrados
  1. 8 0
      docs/configuration.rst
  2. 2 2
      docs/userguide/tasks.rst

+ 8 - 0
docs/configuration.rst

@@ -358,6 +358,14 @@ Task execution settings
 
     Default is ``pickle``.
 
+* CELERY_DEFAULT_RATE_LIMIT
+
+  The global default rate limit for tasks.
+
+  This value is used for tasks that does not have a custom rate limit
+  The default is no rate limit.
+
+
 Worker: celeryd
 ===============
 

+ 2 - 2
docs/userguide/tasks.rst

@@ -195,8 +195,8 @@ Task options
   The rate limits can be specified in seconds, minutes or hours
   by appending ``"/s"``, ``"/m"`` or "``/h"``" to the value.
   Example: ``"100/m" (hundred tasks a
-  minute). Default is the ``CELERY_DEFAULT_RATE_LIMIT`` setting (which
-  is off if not specified).
+  minute). Default is the ``CELERY_DEFAULT_RATE_LIMIT`` setting, which if not
+  specified means rate limiting for tasks is turned off by default.
 
 * ignore_result