[rabbitmq-discuss] Learning of the last job on queue.

Matthew Sackman matthew at rabbitmq.com
Tue Apr 19 11:13:26 BST 2011


On Sun, Apr 17, 2011 at 04:10:54PM +0300, Allan Kamau wrote:
> Is there some way of knowing of the last job processed on a now empty queue?

No.  And I don't think you want to do that either ;) - there's no
guarantee that the last message sent out by a queue is the last message
to arrive at a client: especially in light of things like basic.qos but
even if that were set to 1 and you're manually acking, slow network
links etc may mean some other client that was sent the penultimate msg
in the queue actually receives that message a long time after the real
last msg in the queue gets received and processed by some other client.
That said, you may not care about these cases...

Could you describe why you're trying to achieve this and/or what problem
you're trying to solve?

Best wishes,

Matthew


More information about the rabbitmq-discuss mailing list