It seems that delayed_queue_schedule_size() relies on the cardinality of the resque:delayed_queue_schedule ZSET. This means that any jobs that occur within the same second/timestamp will only be counted as a single job, thereby producing an incorrect return value.
It seems that
delayed_queue_schedule_size()
relies on the cardinality of theresque:delayed_queue_schedule
ZSET. This means that any jobs that occur within the same second/timestamp will only be counted as a single job, thereby producing an incorrect return value.