Class: ActiveJob::QueueAdapters::ShinqAdapter

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

Class Method Summary collapse

Class Method Details

.enqueue(job) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/shinq/active_job/queue_adapters/shinq_adapter.rb', line 5

def enqueue(job)
  Shinq::Client.enqueue(
    table_name: job.queue_name,
    job_id: job.job_id,
    args: job.arguments.first
  )
end