Class: ActiveJob::QueueAdapters::JetsJobAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/active_job/queue_adapters/jets_job_adapter.rb

Instance Method Summary collapse

Instance Method Details

#enqueue(job) ⇒ Object



5
6
7
# File 'lib/active_job/queue_adapters/jets_job_adapter.rb', line 5

def enqueue(job)
  Jets::Rails::Job::Queue.new(job).enqueue
end

#enqueue_at(job, timestamp) ⇒ Object



9
10
11
# File 'lib/active_job/queue_adapters/jets_job_adapter.rb', line 9

def enqueue_at(job, timestamp)
  Jets::Rails::Job::Queue.new(job, timestamp).enqueue
end