app/models/resque_instance.rb
# Return the number of jobs waiting, in all queues
Return the number of jobs waiting, in all queues
Return the number of jobs waiting in all queues
def waiting
    @resque_data_store.queue_names.reduce(0) { |current_sum,queue_name|
      current_sum + @resque_data_store.queue_size(queue_name)
    }
  end
def waiting @resque_data_store . queue_names . reduce ( 0 ) { | current_sum , queue_name | current_sum + @resque_data_store . queue_size ( queue_name ) } end
Return the number of jobs waiting, in all queues
Return the number of jobs waiting in all queues