Skip to content

Commit f2b39ea

Browse files
author
DKravtsov
committed
added example for limit consuming to specific queue / queues
1 parent 2fcf1be commit f2b39ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

messenger.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,12 +604,18 @@ transport is always bound to an exchange. By default, the worker consumes from a
604604
queues attached to the exchange of the specified transport. However, there are use
605605
cases to want a worker to only consume from specific queues.
606606

607-
You can limit the worker to only process messages from specific queues:
607+
You can limit the worker to only process messages from specific queue:
608608

609609
.. code-block:: terminal
610610
611611
$ php bin/console messenger:consume my_transport --queues=fasttrack
612612
613+
Or you can limit the worker to only process messages from specific queues:
614+
615+
.. code-block:: terminal
616+
617+
$ php bin/console messenger:consume my_transport --queues=fasttrack1 --queues=fasttrack2
618+
613619
To allow using the ``queues`` option, the receiver must implement the
614620
:class:`Symfony\\Component\\Messenger\\Transport\\Receiver\\QueueReceiverInterface`.
615621

0 commit comments

Comments
 (0)