Sha256: a01dc415cb8703e7f324e4e1cf3d4d0f5c3ecd83c0d185bc38c1e15345395255

Contents?: true

Size: 675 Bytes

Versions: 74

Compression:

Stored size: 675 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

74 entries across 74 versions & 7 rubygems

Version Path
activejob-6.0.4 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.7 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.1.3.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.1.3.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.6 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.1.3 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.1.2.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.5 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.1.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.1.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.1.0 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.4 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.3 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.3.rc1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-6.0.2.2 lib/active_job/queue_adapters/inline_adapter.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/activejob-6.0.2.1/lib/active_job/queue_adapters/inline_adapter.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/activejob-6.0.2.1/lib/active_job/queue_adapters/inline_adapter.rb