Преглед на файлове

Correct arithmetic and add note about rate_limit

Lucas Wiman преди 10 години
родител
ревизия
854379db7c
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      docs/userguide/tasks.rst

+ 6 - 1
docs/userguide/tasks.rst

@@ -518,11 +518,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