mateodelnorte / servicebus

Simple service bus for sending events between processes using amqp.
MIT License
420 stars 66 forks source link

Listen handler isn't notified about consumer cancel #153

Open brendanwheble opened 4 years ago

brendanwheble commented 4 years ago

I have a service listening to several queues. Recently I noticed that messages were building up in one queue and there was no longer a consumer. My listen handler was blissfully unaware of the problem so I checked the servicebus source and noticed that any consumer cancel messages are lost. I manually deleted a queue, the servicebus consume method received a null message. This is deliberately not sent to my handler code so how can I react to situations like this?

mateodelnorte commented 4 years ago

Happy to accept a PR. A plug-in would likely accomplish it.

On Mon, Mar 9, 2020 at 8:24 AM brendanwheble notifications@github.com wrote:

I have a service listening to several queues. Recently I noticed that messages were building up in one queue and there was no longer a consumer. My listen handler was blissfully unaware of the problem so I checked the servicebus source and noticed that any consumer cancel messages are lost. I manually deleted a queue, the servicebus consume method received a null message. This is deliberately not sent to my handler code so how can I react to situations like this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mateodelnorte/servicebus/issues/153?email_source=notifications&email_token=AAEHOX43SABUQFQPR5PI2NLRGTUZBA5CNFSM4LEIVCN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITSFCSA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEHOX6KLSN2Q63CI3I3LXDRGTUZBANCNFSM4LEIVCNQ .