class ActiveJob::QueueAdapters::BackburnerAdapter
Rails.application.config.active_job.queue_adapter = :backburner
To use Backburner set the queue_adapter config to :backburner
.
Backburner here.
multiple work queues to be processed later. Read more about
high volume of jobs. You create background jobs and place them on
Backburner is a beanstalkd-powered job queue that can handle a very
== Backburner adapter for Active Job
def enqueue(job) # :nodoc:
def enqueue(job) # :nodoc: Backburner::Worker.enqueue(JobWrapper, [job.serialize], queue: job.queue_name, pri: job.priority) end
def enqueue_at(job, timestamp) # :nodoc:
def enqueue_at(job, timestamp) # :nodoc: delay = timestamp - Time.current.to_f Backburner::Worker.enqueue(JobWrapper, [job.serialize], queue: job.queue_name, pri: job.priority, delay: delay) end