Sha256: 037865c89f959c7386d99b744aaa282870676a7ab4a78f6cdecf73cd7b3a84de

Contents?: true

Size: 677 Bytes

Versions: 38

Compression:

Stored size: 677 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:
        Base.execute(job.serialize)
      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

38 entries across 36 versions & 4 rubygems

Version Path
activejob-7.0.8.7 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.8.6 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.8.5 lib/active_job/queue_adapters/inline_adapter.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activejob-7.0.8.4/lib/active_job/queue_adapters/inline_adapter.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activejob-7.0.5.1/lib/active_job/queue_adapters/inline_adapter.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activejob-7.0.5.1/lib/active_job/queue_adapters/inline_adapter.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activejob-7.0.5.1/lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.8.4 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.8.1 lib/active_job/queue_adapters/inline_adapter.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activejob-7.0.3.1/lib/active_job/queue_adapters/inline_adapter.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activejob-7.0.2.3/lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.8 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.7.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.7.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.7 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.6 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.5.1 lib/active_job/queue_adapters/inline_adapter.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activejob-7.0.2.3/lib/active_job/queue_adapters/inline_adapter.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activejob-7.0.3.1/lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.0.5 lib/active_job/queue_adapters/inline_adapter.rb