app/models/resque_instance.rb
# Return the number of running jobs
Return the number of running jobs
Return the number of running jobs
def running
    worker_ids = Array(@resque_data_store.worker_ids)
    return 0 if worker_ids.empty?
    workers_map(worker_ids).reject { |_,worker_info| worker_info.nil? }.size
  end
def running worker_ids = Array ( @resque_data_store . worker_ids ) return 0 if worker_ids . empty? workers_map ( worker_ids ) . reject { | _ , worker_info | worker_info . nil? } . size end
Return the number of running jobs
Return the number of running jobs