class ActiveJob::QueueAdapters::SneakersAdapter
Rails.application.config.active_job.queue_adapter = :sneakers
To use Sneakers set the queue_adapter config to :sneakers
.
Read more about Sneakers here.
0-maintenance, as designed.
workloads, and have achieved the goals of high-performance and
Sneakers is being used in production for both I/O and CPU intensive
A high-performance RabbitMQ background processing framework for Ruby.
== Sneakers adapter for Active Job
def enqueue(job) # :nodoc:
def enqueue(job) # :nodoc: @monitor.synchronize do JobWrapper.from_queue job.queue_name JobWrapper.enqueue ActiveSupport::JSON.encode(job.serialize) end end
def enqueue_at(job, timestamp) # :nodoc:
def enqueue_at(job, timestamp) # :nodoc: raise NotImplementedError, "This queueing backend does not support scheduling jobs. To see what features are supported go to http://api.rubyonrails.org/classes/ActiveJob/QueueAdapters.html" end
def initialize
def initialize @monitor = Monitor.new end