Class: ActiveJob::QueueAdapters::QueAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::QueAdapter
- Defined in:
- lib/active_job/queue_adapters/que_adapter.rb
Overview
Que adapter for Active Job
Que is a high-performance alternative to DelayedJob or QueueClassic that improves the reliability of your application by protecting your jobs with the same ACID guarantees as the rest of your data. Que is a queue for Ruby and PostgreSQL that manages jobs using advisory locks.
Read more about Que here.
To use Que set the queue_adapter config to :que
.
Rails.application.config.active_job.queue_adapter = :que
Defined Under Namespace
Classes: JobWrapper
Class Method Summary collapse
-
.enqueue(job) ⇒ Object
:nodoc:.
-
.enqueue_at(job, timestamp) ⇒ Object
:nodoc:.
Class Method Details
.enqueue(job) ⇒ Object
:nodoc:
19 20 21 |
# File 'lib/active_job/queue_adapters/que_adapter.rb', line 19 def enqueue(job) #:nodoc: JobWrapper.enqueue job.serialize, queue: job.queue_name end |
.enqueue_at(job, timestamp) ⇒ Object
:nodoc:
23 24 25 |
# File 'lib/active_job/queue_adapters/que_adapter.rb', line 23 def enqueue_at(job, ) #:nodoc: JobWrapper.enqueue job.serialize, queue: job.queue_name, run_at: Time.at() end |