Module: Que::ActiveJob::WrapperExtensions::ClassMethods
- Included in:
- ActiveJob::QueueAdapters::QueAdapter::JobWrapper
- Defined in:
- lib/que/active_job/extensions.rb
Instance Method Summary collapse
-
#enqueue(args, priority:, queue:, run_at: nil) ⇒ Object
We’ve dropped support for job options supplied as top-level keywords, but ActiveJob’s QueAdapter still uses them.
Instance Method Details
#enqueue(args, priority:, queue:, run_at: nil) ⇒ Object
We’ve dropped support for job options supplied as top-level keywords, but ActiveJob’s QueAdapter still uses them. So we have to move them into the job_options hash ourselves.
67 68 69 |
# File 'lib/que/active_job/extensions.rb', line 67 def enqueue(args, priority:, queue:, run_at: nil) super(args, job_options: { priority: priority, queue: queue, run_at: run_at }) end |