Sha256: dc23436adc52585c86ac3e3aa93b183edcd49dc4b0e4dde7e14d6cd289f1635b
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 Bytes
Contents
# frozen_string_literal: true module ActiveJob module QueueAdapters # == Active Job Inline adapter # # When enqueuing jobs with the Inline adapter the job will be executed # immediately. # # To use the Inline set the queue_adapter config to +:inline+. # # Rails.application.config.active_job.queue_adapter = :inline class InlineAdapter def enqueue(job) #:nodoc: Thread.new { Base.execute(job.serialize) }.join end def enqueue_at(*) #:nodoc: raise NotImplementedError, "Use a queueing backend to enqueue jobs in the future. Read more at https://guides.rubyonrails.org/active_job_basics.html" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-6.1.0.rc2 | lib/active_job/queue_adapters/inline_adapter.rb |
activejob-6.1.0.rc1 | lib/active_job/queue_adapters/inline_adapter.rb |