-
Notifications
You must be signed in to change notification settings - Fork 21
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
Show number of queries in queue while waiting for execution #786
Conversation
The code looks fine to me, I'll try it out locally as well. Just wondering if maybe we should be opening this up upstream? And perhaps we can add a small test for this. |
I'd like to test this out in our deploy for a bit before sending it upstream. I've added a simple test for the API layer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for a test-drive.
@washort @rafrombrc We never looked at this again since the test-drive, and the code isn't super ideal. |
This invokes the same API used in the admin "Running Queries" page to ask redis how many jobs are in the 'waiting' state ahead of the current one.
I tested this locally by stopping the celery worker and executing several queries.