Skip to content

[Feature Request] ability to filter delayed jobs #112

@xurc

Description

@xurc

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;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions