Sha256: 99648071c0d1e82f10af96119ef1f3dfe3cc297745f5ab6a963335d2235c0231

Contents?: true

Size: 690 Bytes

Versions: 44

Compression:

Stored size: 690 Bytes

Contents

module ActiveJob
  module QueueAdapters
    # == Active Job Inline adapter
    #
    # When enqueueing 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
      class << self
        def enqueue(job) #:nodoc:
          Base.execute(job.serialize)
        end

        def enqueue_at(*) #:nodoc:
          raise NotImplementedError.new("Use a queueing backend to enqueue jobs in the future. Read more at http://guides.rubyonrails.org/active_job_basics.html")
        end
      end
    end
  end
end

Version data entries

44 entries across 43 versions & 8 rubygems

Version Path
activejob-4.2.11.3 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.11.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.11.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.11 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.10 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.10.rc1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.9 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.9.rc2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.9.rc1 lib/active_job/queue_adapters/inline_adapter.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activejob-4.2.8/lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.8 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.8.rc1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.7.1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.7 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.7.rc1 lib/active_job/queue_adapters/inline_adapter.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-4.2.6/lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.6 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.6.rc1 lib/active_job/queue_adapters/inline_adapter.rb
activejob-4.2.5.2 lib/active_job/queue_adapters/inline_adapter.rb
activejob-lock-0.0.2 rails/activejob/lib/active_job/queue_adapters/inline_adapter.rb