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

[Feature Request] ability to filter delayed jobs #112

Open
xurc opened this issue Jul 30, 2021 · 1 comment
Open

[Feature Request] ability to filter delayed jobs #112

xurc opened this issue Jul 30, 2021 · 1 comment

Comments

@xurc
Copy link

xurc commented Jul 30, 2021

It would be great to be able to exclude delayed jobs in a "jobs" method. We use metrics for monitoring and alerts in case jobs for some reason begin to accumulate in the queue and now delayed jobs have to be filtered on the perl-side, which significantly affects performance.

I understand that I can just make a SQL-query directly to the database, but this is a kludge and I would like to have an honest filter in the minions API.

Something like:

# Count waiting jobs
say $minion->jobs({waiting => 1})->total;
@kraih
Copy link
Member

kraih commented Jul 30, 2021

I would make it say $minion->jobs({delayed => true/false})->total;, but yes, that seems like a useful feature.

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

No branches or pull requests

2 participants