Class: ActiveJob::QueueAdapters::InlineAdapter

Inherits:
Object
  • Object
show all
Defined in:
activejob/lib/active_job/queue_adapters/inline_adapter.rb

Overview

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 Method Summary collapse

Class Method Details

.enqueue(job) ⇒ Object

:nodoc:


13
14
15
# File 'activejob/lib/active_job/queue_adapters/inline_adapter.rb', line 13

def enqueue(job) #:nodoc:
  Base.execute(job.serialize)
end

.enqueue_atObject

:nodoc:

Raises:

  • (NotImplementedError)

17
18
19
# File 'activejob/lib/active_job/queue_adapters/inline_adapter.rb', line 17

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