Sha256: e45c6d2b91b8c0036bee9b97a1454b7baaa1152de74afd82c225d81561cfeb22
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
require 'active_job/async_job' module ActiveJob module QueueAdapters # == Active Job Async adapter # # When enqueuing jobs with the Async adapter the job will be executed # asynchronously using {AsyncJob}[http://api.rubyonrails.org/classes/ActiveJob/AsyncJob.html]. # # To use +AsyncJob+ set the queue_adapter config to +:async+. # # Rails.application.config.active_job.queue_adapter = :async class AsyncAdapter def enqueue(job) #:nodoc: ActiveJob::AsyncJob.enqueue(job.serialize, queue: job.queue_name) end def enqueue_at(job, timestamp) #:nodoc: ActiveJob::AsyncJob.enqueue_at(job.serialize, timestamp, queue: job.queue_name) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activejob-5.0.0.beta3 | lib/active_job/queue_adapters/async_adapter.rb |