This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
celery.contrib.batches | |
====================== | |
Experimental task class that buffers messages and processes them as a list. | |
.. warning:: | |
For this to work you have to set | |
:setting:`CELERYD_PREFETCH_MULTIPLIER` to zero, or some value where | |
the final multiplied value is higher than ``flush_every``. | |
In the future we hope to add the ability to direct batching tasks |