rabbitmq-cli-consumer icon indicating copy to clipboard operation
rabbitmq-cli-consumer copied to clipboard

Stop consuming messages

Open sroze opened this issue 8 years ago • 2 comments

Hello there! Is there a way (a signal to send?) to say to the consumer to finish consuming the message and then stop? This would be needed to gracefully update the worker

Thanks!

sroze avatar Jan 25 '17 12:01 sroze

Hi @sroze

Unfortunately there is not in the current version. I'm just restarting consumers with supervisor on a rather busy queue and haven't experienced any loss of messages so far in the last 2 years. But I can't disagree a graceful restart would be much better. If you're willing to contribute this I'll be happy to merge it.

ricbra avatar Jan 25 '17 12:01 ricbra

So do I need to kill the server process to stop consuming then ?

yusuf5033 avatar Nov 01 '17 14:11 yusuf5033