Class: Resque::JobWithStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/resque/scheduler.rb

Class Method Summary collapse

Class Method Details

.enqueue_with_queue(queue, klass, options = {}) ⇒ Object



7
8
9
10
11
# File 'lib/resque/scheduler.rb', line 7

def self.enqueue_with_queue(queue, klass, options = {})
  uuid = Resque::Status.create
  Job.create(queue, klass, uuid, options)
  uuid
end