Explorar el Código

Correct arithmetic and add note about rate_limit

Lucas Wiman hace 12 años
padre
commit
590efe4211
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      docs/userguide/tasks.rst

+ 6 - 1
docs/userguide/tasks.rst

@@ -567,11 +567,16 @@ General
     distributed over the specified time frame.
     distributed over the specified time frame.
 
 
     Example: `"100/m"` (hundred tasks a minute). This will enforce a minimum
     Example: `"100/m"` (hundred tasks a minute). This will enforce a minimum
-    delay of 10ms between starting two tasks.
+    delay of 600ms between starting two tasks on the same worker instance.
     
     
     Default is the :setting:`CELERY_DEFAULT_RATE_LIMIT` setting,
     Default is the :setting:`CELERY_DEFAULT_RATE_LIMIT` setting,
     which if not specified means rate limiting for tasks is disabled by default.
     which if not specified means rate limiting for tasks is disabled by default.
 
 
+    Note that this is a *per worker instance* rate limit, and not a global
+    rate limit. To enforce a global rate limit (e.g. for an API with a
+    maximum number of  requests per second), you must restrict to a given
+    queue.
+
 .. attribute:: Task.time_limit
 .. attribute:: Task.time_limit
 
 
     The hard time limit, in seconds, for this task.  If not set then the workers default
     The hard time limit, in seconds, for this task.  If not set then the workers default