For delayed queues, the size property may be misleading,
as it shows all jobs that are enqueued in that queue.
This patch adds a pending property to the QueueInfo class
which shows the number of jobs in a delayed queue that are
eligible for execution by a worker.
Coverage increased (+0.08%) to 70.774% when pulling 76cc6dbd6eb0f886705799bffa02f51cfc47307c on uberall:pending-jobs into c0e56a10e7cd5724574adb6c0728d3098b6e8d2e on gresrun:master.
For delayed queues, the size property may be misleading, as it shows all jobs that are enqueued in that queue.
This patch adds a
pending
property to the QueueInfo class which shows the number of jobs in a delayed queue that are eligible for execution by a worker.