Commit Graph

2 Commits

Author SHA1 Message Date
Ask Solem 87a5568bc8 Use Google-style docstrings 2016-07-16 11:51:23 -07:00
Ask Solem 45ac835e97 Redis: Adds queue_order_strategy transport option (Closes #518).
Order in which we consume from queues.
Can be either string alias, or a cycle strategy class

- ``round_robin``
    :class:`~kombu.utils.scheduling.round_robin_cycle``

    Make sure each queue has an equal opportunity to be consumed from.

- ``sorted``
    :class:`~kombu.utils.scheduling.sorted_cycle`.

    Consume from queues in alphabetical order.
    If the first queue in the sorted list always contains messages,
    then the rest of the queues will never be consumed from.

- ``priority``
    :class:`~kombu.utils.scheduling.priority_cycle`.

    Consume from queues in original order, so that if the first
    queue always contains messages, the rest of the queues
    in the list will never be consumed from.

    The default is to consume from queues in round robin.
2015-11-24 13:37:48 -08:00