Skip to content

Commit 0010570

Browse files
committed
minor #16212 added example for limit consuming to specific queue / queues (DKravtsov)
This PR was merged into the 5.3 branch. Discussion ---------- added example for limit consuming to specific queue / queues <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- f2b39ea added example for limit consuming to specific queue / queues
2 parents 2fcf1be + f2b39ea commit 0010570

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)