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

Bernard:consume Option to run all registered queues? #46

Open
mipapo opened this issue Jan 31, 2017 · 3 comments
Open

Bernard:consume Option to run all registered queues? #46

mipapo opened this issue Jan 31, 2017 · 3 comments

Comments

@mipapo
Copy link

mipapo commented Jan 31, 2017

Is there any possibility to run all queues?
Something like
bernard:consume --all

BTW: Using Bernard with Symfony 3.1.* with file and doctrine driver -> Works fine for me

@henrikbjorn
Copy link
Contributor

Sorry, not at the moment.

@samgreenwood
Copy link

Is this a technical limitation, or something that no one want's to spend the time on?

@sagikazarmark
Copy link
Contributor

I would say it's not really a good idea and therefore it's not implemented, not to encourage someone to do it.

When listening to multiple queues at once:

  • it slows down execution, since messages are not processed in parallel
  • it is some kind of risk: if one of your messages causes a fatal error, all of your workers will fail
  • you can't effectively scale your workers according to the need, you have to scale them together
  • way much harder to debug what's happening

Probably there are other reasons as well why one shouldn't do it.

That being said, if you can provide use cases why having such feature would help you (apart from the obvious laziness 😄 ), I might reconsider.

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

No branches or pull requests

4 participants