Class: ActiveJob::QueueAdapters::InlineAdapter
- Inherits:
 - 
      AbstractAdapter
      
        
- Object
 - AbstractAdapter
 - ActiveJob::QueueAdapters::InlineAdapter
 
 
- Defined in:
 - activejob/lib/active_job/queue_adapters/inline_adapter.rb
 
Overview
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
  Instance Method Summary collapse
- 
  
    
      #enqueue(job)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 - 
  
    
      #enqueue_after_transaction_commit?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 - 
  
    
      #enqueue_at  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 
Instance Method Details
#enqueue(job) ⇒ Object
:nodoc:
      18 19 20  | 
    
      # File 'activejob/lib/active_job/queue_adapters/inline_adapter.rb', line 18 def enqueue(job) # :nodoc: Base.execute(job.serialize) end  | 
  
#enqueue_after_transaction_commit? ⇒ Boolean
:nodoc:
      14 15 16  | 
    
      # File 'activejob/lib/active_job/queue_adapters/inline_adapter.rb', line 14 def enqueue_after_transaction_commit? # :nodoc: false end  | 
  
#enqueue_at ⇒ Object
:nodoc:
      22 23 24  | 
    
      # File 'activejob/lib/active_job/queue_adapters/inline_adapter.rb', line 22 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  |