File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -543,6 +543,23 @@ command with the ``--all`` option:
543543
544544 The ``--all `` option was introduced in Symfony 7.1.
545545
546+ When using ``--all ``, you can exclude specific receivers using the ``--exclude-receivers ``
547+ option (shortcut ``-eq ``). This is useful when you want to consume from all receivers
548+ except certain ones (e.g., the failed transport):
549+
550+ .. code-block :: terminal
551+
552+ $ php bin/console messenger:consume --all --exclude-receivers=async_priority_low --exclude-receivers=failed
553+
554+ .. versionadded :: 7.4
555+
556+ The ``--exclude-receivers `` option was introduced in Symfony 7.4.
557+
558+ .. note ::
559+
560+ The ``--exclude-receivers `` option can only be used together with ``--all ``.
561+ Also, you cannot exclude all receivers.
562+
546563Messages that take a long time to process may be redelivered prematurely because
547564some transports assume that an unacknowledged message is lost. To prevent this
548565issue, use the ``--keepalive `` command option to specify an interval (in seconds;
You can’t perform that action at this time.
0 commit comments