123456789_123456789_123456789_123456789_123456789_

Class: ActiveJob::QueueAdapters::AbstractAdapter

Overview

Active Job Abstract Adapter

Active Job supports multiple job queue systems. AbstractAdapter forms the abstraction layer which makes this possible.

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#enqueue_after_transaction_commit?Boolean (readonly)

Defines whether enqueuing should happen implicitly to after commit when called from inside a transaction. Most adapters should return true, but some adapters that use the same database as Active Record and are transaction aware can return false to continue enqueuing jobs as part of the transaction.

[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 14

def enqueue_after_transaction_commit?
  true
end

Instance Method Details

#enqueue(job)

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 18

def enqueue(job)
  raise NotImplementedError
end

#enqueue_at(job, timestamp)

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 22

def enqueue_at(job, timestamp)
  raise NotImplementedError
end