Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony Bundle: amqp bunny doesn't stop the execution of the CLI command #303

Closed
lostfocus opened this issue Dec 23, 2017 · 2 comments · Fixed by #310
Closed

Symfony Bundle: amqp bunny doesn't stop the execution of the CLI command #303

lostfocus opened this issue Dec 23, 2017 · 2 comments · Fixed by #310
Labels

Comments

@lostfocus
Copy link

I'm running the Symfony Bundle with the following command:

php bin/console --time-limit="now + 5 minutes" enqueue:consume -vvv

and instead of just stopping after five minutes it keeps throwing a LimitConsumptionTimeExtension and stays around:

[debug] [LimitConsumptionTimeExtension] Execution interrupted as limit time has passed. now: "2017-12-23T22:41:25+0000", time-limit: "2017-12-23T22:33:06+0000"

It works fine with MySQL/Doctrine, but amqp/bunny keeps having this problem. Any idea what could be the problem?

@makasim makasim added the bug label Dec 26, 2017
@makasim
Copy link
Member

makasim commented Dec 26, 2017

That's most likely a bug. The reason why MySQL transports where AMQP not is because of how queue consumer subscribes to the queue. For AMQP it uses AMQP subscribe\consume API, where for the rest of transports it uses receive() method.

if ($this->psrContext instanceof AmqpContext) {

@lostfocus
Copy link
Author

Just as an addendum: up until that Exception that doesn't stop the CLI command it works perfectly fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants