corvus-ch / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
236 stars 36 forks source link

Set queue options #49

Closed Vodzo closed 5 years ago

Vodzo commented 5 years ago

Hi, i was wondering if there is a way to set queue durability separately from exchange durability? When i set the exchange as durable and of 'fanout' type the queue inherits this options which is not intended behavior in my app.

EDIT: now that i have checked, there is actually no possibility to set any of the queue options (passive, durable, exclusive, auto_delete). Is there a plan to implement these options?

corvus-ch commented 5 years ago

So far, there are no plans to make queue options configurable. This is mainly due to the fact, that I did not have a need for it. This is definitely something worth to be taken into consideration.

Vodzo commented 5 years ago

I have looked at the code and i could do this (implement all remaining queue options) in a few hours tomorrow morning without breaking BC, if you are open to pull requests?

corvus-ch commented 5 years ago

Sure, PRs are welcome.

davidegiarolo commented 5 years ago

Hi, we are going to run it in production, to avoid php script pooling. thank you very much for your work. regards

corvus-ch commented 5 years ago

I just merged the PR which resolves this issue. Is there a requirement for a new release or can you build master yourself and work with that?

Vodzo commented 5 years ago

It would be nice to get a new release since i already have automated builds that just download the binaries. I would prefer to keep it simple and without additional build steps. Thank you