Class: ActiveJob::QueueAdapters::DelayedJobAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::DelayedJobAdapter
- Defined in:
- lib/active_job/queue_adapters/delayed_job_adapter.rb
Defined Under Namespace
Classes: JobWrapper
Class Method Summary collapse
Class Method Details
.enqueue(job) ⇒ Object
7 8 9 |
# File 'lib/active_job/queue_adapters/delayed_job_adapter.rb', line 7 def enqueue(job) JobWrapper.new.delay(queue: job.queue_name).perform(job.serialize) end |
.enqueue_at(job, timestamp) ⇒ Object
11 12 13 |
# File 'lib/active_job/queue_adapters/delayed_job_adapter.rb', line 11 def enqueue_at(job, ) JobWrapper.new.delay(queue: job.queue_name, run_at: Time.at()).perform(job.serialize) end |