Skip to content

Commit de4a36e

Browse files
committed
minor #12154 [Messenger] Information about why consumers do not show up in the (rabbitmq) admin panel (smoench)
This PR was merged into the 4.3 branch. Discussion ---------- [Messenger] Information about why consumers do not show up in the (rabbitmq) admin panel I wondered why the consumers were not shown up in the rabbitmq admin panel. I found following explanation symfony/symfony#30259 (comment) from @chalasr which should be documented. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap 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 `master` for features of unreleased versions). --> Commits ------- 27339f2 [Messenger] Information about why consumers do not show up in the (rabbimq) admin panel
2 parents 927a577 + 27339f2 commit de4a36e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

messenger.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,17 @@ your Envelope::
759759
new AmqpStamp('custom-routing-key', AMQP_NOPARAM, $attributes)
760760
]);
761761

762+
.. caution::
763+
764+
The consumers do not show up in an admin panel as this transport does not rely on
765+
``\AmqpQueue::consume()`` which is blocking. Having a blocking receiver makes
766+
the ``--time-limit/--memory-limit`` options of the ``messenger:consume`` command as well as
767+
the ``messenger:stop-workers`` command inefficient, as they all rely on the fact that
768+
the receiver returns immediately no matter if it finds a message or not. The consume
769+
worker is responsible for iterating until it receives a message to handle and/or until one
770+
of the stop conditions is reached. Thus, the worker's stop logic cannot be reached if it
771+
is stuck in a blocking call.
772+
762773
Doctrine Transport
763774
~~~~~~~~~~~~~~~~~~
764775

0 commit comments

Comments
 (0)