gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
628 stars 131 forks source link

add pending property to QueueInfo #148

Closed bp-FLN closed 6 years ago

bp-FLN commented 6 years ago

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.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.08%) to 70.774% when pulling 76cc6dbd6eb0f886705799bffa02f51cfc47307c on uberall:pending-jobs into c0e56a10e7cd5724574adb6c0728d3098b6e8d2e on gresrun:master.