The idea is:
Users need more control over queuing of jobs.
- add ability to set a queue limit in workflow settings
- add ability to set a global queue limit
- automatically purge queued jobs per-workflow for inactive (deactivated) workflows
- add ability to manually purge per-workflow job queue (queued jobs)
- add ability to manually purge global job queue (queued jobs)
My use case:
I have a backlog of jobs that queue indefinitely at the rate-of-schedule per workflow. This can create a massive backlog of queued jobs if the workers cannot keep up.
I think it would be beneficial to add this because:
- Limiting the number of queued jobs per workflow would prevent limitless queuing.
- Having the ability to purge existing queues (globally and per-workflow) would restore a clean state to the queuing mechanism.
- Deactivated jobs should no longer have queued jobs - it’s counter-intuitive as it stands, but open to debate - either way, it should be configurable.