8000 [Messenger] Information about why consumers do not show up in the (ra… · symfony/symfony-docs@27339f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27339f2

Browse files
author
smoench
committed
[Messenger] Information about why consumers do not show up in the (rabbimq) admin panel
1 parent 53e5098 commit 27339f2

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)
0