Class: Resque::Job
- Inherits:
-
Object
- Object
- Resque::Job
- Defined in:
- lib/resque-priority-jobs/job.rb
Class Method Summary collapse
-
.create_with_priority(queue, klass, priority, *args) ⇒ Object
checks if klass and queue are valid FIXME: Not implemented Resque.inline?.
Class Method Details
.create_with_priority(queue, klass, priority, *args) ⇒ Object
checks if klass and queue are valid FIXME: Not implemented Resque.inline?
5 6 7 8 |
# File 'lib/resque-priority-jobs/job.rb', line 5 def self.create_with_priority queue, klass, priority, *args Resque.validate(klass, queue) Resque.push_with_priority(queue, priority, :class => klass.to_s, :args => args, :priority => priority) end |