app/models/resque_instance.rb
# Return a hash of all jobs waiting, where the key is the name of the queue and the value
# being an array of `Job` instances.
Return a hash of all jobs waiting, where the key is the name of the queue and the value
being an array of `Job` instances.
Return a hash of all jobs waiting where the key is the name of the queue and the value being an array of ` Job ` instances .
def jobs_waiting
    Hash[@resque_data_store.queue_names.map { |queue_name|
      [
        queue_name,
        @resque_data_store.everything_in_queue(queue_name).map { |json|
          Resque.decode(json)
        }.map { |payload|
          Job.new(payload: payload, queue: queue_name)
        }
      ]
    }]
  end
def jobs_waiting Hash [ @resque_data_store . queue_names . map { | queue_name | [ queue_name , @resque_data_store . everything_in_queue ( queue_name ) . map { | json | Resque . decode ( json ) } . map { | payload | Job . new ( payload : payload , queue : queue_name ) } ] } ] end
Return a hash of all jobs waiting, where the key is the name of the queue and the value
being an array of `Job` instances.
Return a hash of all jobs waiting where the key is the name of the queue and the value being an array of ` Job ` instances .