class ActiveJob::QueueAdapters::QuAdapter
Rails.application.config.active_job.queue_adapter = :qu
To use Qu set the queue_adapter config to :qu
.
Read more about Qu here.
requeued when worker is killed, resque-like API.
The advantages of Qu are: Multiple backends (redis, mongo), jobs are
some shortcomings in the existing queuing libraries.
heavily inspired by delayed_job and Resque. Qu was created to overcome
Qu is a Ruby library for queuing and processing background jobs. It is
== Qu adapter for Active Job
def enqueue(job, *args) #:nodoc:
def enqueue(job, *args) #:nodoc: Qu::Payload.new(klass: JobWrapper, args: [job.serialize]).tap do |payload| payload.instance_variable_set(:@queue, job.queue_name) end.push end
def enqueue_at(job, timestamp, *args) #:nodoc:
def enqueue_at(job, timestamp, *args) #:nodoc: raise NotImplementedError end