instance method
enqueue_after_transaction_commit?
Ruby on Rails 7.2.3
Since v7.2.3 Last seen in v7.2.3Signature
enqueue_after_transaction_commit?()
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.
Source
# File activejob/lib/active_job/queue_adapters/abstract_adapter.rb, line 14
def enqueue_after_transaction_commit?
true
end
Defined in activejob/lib/active_job/queue_adapters/abstract_adapter.rb line 14
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::QueueAdapters::AbstractAdapter