Sha256: 9aae07b14c543e4d0107e50b9902de2bedb1abc8dcbaf64e8181bc33b04e67ff

Contents?: true

Size: 676 Bytes

Versions: 18

Compression:

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

18 entries across 18 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activejob-7.1.3.4/lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.5.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.5 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.4.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.4.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.4 lib/active_job/queue_adapters/inline_adapter.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activejob-7.1.3.4/lib/active_job/queue_adapters/inline_adapter.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activejob-7.1.3.4/lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.3.4 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.3.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.3.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.3 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.0 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.0.rc2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.0.rc1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-7.1.0.beta1 lib/active_job/queue_adapters/inline_adapter.rb