class ActiveJob::QueueAdapters::SidekiqAdapter
Rails.application.config.active_job.queue_adapter = :sidekiq
To use Sidekiq set the queue_adapter config to :sidekiq
.
Read more about Sidekiq here.
background processing dead simple.
require Rails but will integrate tightly with Rails 3/4 to make
handle many jobs at the same time in the same process. It does not
Simple, efficient background processing for Ruby. Sidekiq uses threads to
== Sidekiq adapter for Active Job
def enqueue(job) #:nodoc:
def enqueue(job) #:nodoc: #Sidekiq::Client does not support symbols as keys Sidekiq::Client.push \ 'class' => JobWrapper, 'queue' => job.queue_name, 'args' => [ job.serialize ], 'retry' => true end
def enqueue_at(job, timestamp) #:nodoc:
def enqueue_at(job, timestamp) #:nodoc: Sidekiq::Client.push \ 'class' => JobWrapper, 'queue' => job.queue_name, 'args' => [ job.serialize ], 'retry' => true, 'at' => timestamp end