Skip to content

Commit 3e990ce

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Remove some unnecessary and redundant content [Messenger] Document the `--exclude-receivers` option for `messenger:consume` command
2 parents 96deeec + fe02c37 commit 3e990ce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

messenger.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,18 @@ command with the ``--all`` option:
535535
536536
$ php bin/console messenger:consume --all
537537
538+
When using ``--all``, you can exclude specific receivers using the ``--exclude-receivers``
539+
option (shortcut ``-eq``):
540+
541+
.. code-block:: terminal
542+
543+
$ php bin/console messenger:consume --all --exclude-receivers=async_priority_low --exclude-receivers=failed
544+
545+
.. note::
546+
547+
The ``--exclude-receivers`` option can only be used together with ``--all``.
548+
Also, you cannot exclude all receivers.
549+
538550
Messages that take a long time to process may be redelivered prematurely because
539551
some transports assume that an unacknowledged message is lost. To prevent this
540552
issue, use the ``--keepalive`` command option to specify an interval (in seconds;

0 commit comments

Comments
 (0)