If you couple your messages as they’re delivered to the delivering channel somehow it should be easy from there to ensure you’re only sending acks on that channel. Associate the channel with the messages, and if the channel is closed, drop the channel object/reference to invalidate the message and prevents ack attempts. For example, if there’s a disconnect event your channel will be closed, but your app could still have a live object you could acknowledge in, but an error will be raised.
Does that make sense?
Sent from my iPhone
Yeah I could be. I am also running message retrieval on a different thread to the processing thread and hence forced to use add_callback_threadsafe. Do you have any reccomendations on how to run this efficiently and ensure tags are sent through the same channel?