Module: Resque::Integration::Extensions::Job
- Defined in:
- lib/resque/integration/extensions/job.rb
Overview
Public: extension for proper determine queue when destroy job with priority
Instance Method Summary collapse
Instance Method Details
#destroy(queue, klass, *args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/resque/integration/extensions/job.rb', line 7 def destroy(queue, klass, *args) if klass.respond_to?(:priority?) && klass.priority? queue = klass.priority_queue(args.last) end super end |