Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue size and oldest message? #91

Open
bokmann opened this issue Aug 16, 2018 · 1 comment
Open

Queue size and oldest message? #91

bokmann opened this issue Aug 16, 2018 · 1 comment

Comments

@bokmann
Copy link

bokmann commented Aug 16, 2018

To put Propono in the environment I’d like with the monitoring I need, I’d like to be able to get the current size of the queue as well as the age of the oldest message. I don’t see that in the current api... I can look at adding it, but I was wondering if you thought there was a technical limitation why these weren’t there yet.

@dougal
Copy link
Collaborator

dougal commented Sep 20, 2018

Hi David.

No technical limitation. We measure metrics such as these in our source-of-truth database. Example: We can see how many videos in our video pipeline are marked as needing processed, rather than looking at the length of the SQS queue.

Beware that with SQS fetching the first message to see it's age will remove it from the queue until it's visibility timeout has expired. Visibility timeout on a single message can be reset, putting it back in the queue for other listeners to pick it up.

A pull request implementing your suggestions would be considered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants