Class: ActiveJob::QueueAdapters::SneakersAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::SneakersAdapter
- Defined in:
- lib/active_job/queue_adapters/sneakers_adapter.rb
Overview
Sneakers adapter for Active Job
A high-performance RabbitMQ background processing framework for Ruby. Sneakers is being used in production for both I/O and CPU intensive workloads, and have achieved the goals of high-performance and 0-maintenance, as designed.
Read more about Sneakers here.
To use Sneakers set the queue_adapter config to :sneakers
.
Rails.application.config.active_job.queue_adapter = :sneakers
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:
22 23 24 25 26 27 |
# File 'lib/active_job/queue_adapters/sneakers_adapter.rb', line 22 def enqueue(job) #:nodoc: @monitor.synchronize do JobWrapper.from_queue job.queue_name JobWrapper.enqueue ActiveSupport::JSON.encode(job.serialize) end end |
.enqueue_at(job, timestamp) ⇒ Object
:nodoc:
29 30 31 |
# File 'lib/active_job/queue_adapters/sneakers_adapter.rb', line 29 def enqueue_at(job, ) #:nodoc: raise NotImplementedError end |