Closed eric closed 11 years ago
Master has a change that partially fixes this. Instead of updating the age per remove, it now tracks the timestamp of the last removed item and computes the age when requested (by stats or otherwise).
Still doesn't reflect the true age of the head of the queue, so if you remove a very old item and then stop reading for a while it will report a larger age than is strictly true. I'll look into peeking at the head.
This solution is definitely preferable — I would much rather err on the side of it being older than it really is than be newer to allow for alerting based on the age.
Would it be possible to get a build with 8c95afc03f748aae948f8347723d04ab6087d84b in it?
this is 2.3.4
I've noticed if a lot of enqueues are done with no dequeues, the queue age stat is not updated.
It would be nice if it always reflected the current age of the head of the queue instead of only on remove.