method

enqueue_after_transaction_commit?

rails latest stable - Class: ActiveJob::QueueAdapters::AbstractAdapter

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

enqueue_after_transaction_commit?()
public

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.