瀏覽代碼

Merge branch 'master' of github.com:celery/celery

Ask Solem 11 年之前
父節點
當前提交
7535d8c63d
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 1 0
      CONTRIBUTORS.txt
  2. 6 0
      docs/configuration.rst

+ 1 - 0
CONTRIBUTORS.txt

@@ -163,3 +163,4 @@ Brian Bouterse, 2014/04/10
 Dmitry Malinovsky, 2014/04/28
 Dmitry Malinovsky, 2014/04/28
 Luke Pomfrey, 2014/05/06
 Luke Pomfrey, 2014/05/06
 Alexey Kotlyarov, 2014/05/16
 Alexey Kotlyarov, 2014/05/16
+Tadej Janež, 2014/08/08

+ 6 - 0
docs/configuration.rst

@@ -164,6 +164,12 @@ workers, note that the first worker to start will receive four times the
 number of messages initially.  Thus the tasks may not be fairly distributed
 number of messages initially.  Thus the tasks may not be fairly distributed
 to the workers.
 to the workers.
 
 
+To disable prefetching, set CELERYD_PREFETCH_MULTIPLIER to 1.  Setting 
+CELERYD_PREFETCH_MULTIPLIER to 0 will allow the worker to keep consuming
+as many messages as it wants.
+
+For more on prefetching, read :ref:`optimizing-prefetch-limit`
+
 .. note::
 .. note::
 
 
     Tasks with ETA/countdown are not affected by prefetch limits.
     Tasks with ETA/countdown are not affected by prefetch limits.