Class: ActiveJob::QueueAdapters::QuAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::QuAdapter
- Defined in:
- lib/active_job/queue_adapters/qu_adapter.rb
Defined Under Namespace
Classes: JobWrapper
Class Method Summary collapse
Class Method Details
.enqueue(job, *args) ⇒ Object
7 8 9 10 11 |
# File 'lib/active_job/queue_adapters/qu_adapter.rb', line 7 def enqueue(job, *args) Qu::Payload.new(klass: JobWrapper, args: [job.serialize]).tap do |payload| payload.instance_variable_set(:@queue, job.queue_name) end.push end |
.enqueue_at(job, timestamp, *args) ⇒ Object
13 14 15 |
# File 'lib/active_job/queue_adapters/qu_adapter.rb', line 13 def enqueue_at(job, , *args) raise NotImplementedError end |