A
A
Artem2020-11-18 11:03:09
Yii
Artem, 2020-11-18 11:03:09

Why can amqp consumer rabbitmq hang?

Hello.

To work with queues, I use the yii2-queue extension and the \yii\queue\amqp_interop\Queue driver.
Messages successfully go to the queue and, up to a certain point, are successfully processed by the consumer launched by the queue/listen command. At some point, messages start piling up while the consumer is still running but doing nothing. Help, please, where to dig. What else needs to be said?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2020-11-18
@yarkin

I am not a PHP expert, but the situation looks similar to the fact that RabbitMQ is waiting for confirmation of processing messages, but the consumer does not send them. Try restarting the consumer, if he starts receiving the same messages again, then this is exactly the problem. If the RabbitMQ management web-face is available, then you can find exact information about what is happening now.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question