Delayed Job adapter for Active Job
Delayed::Job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. Although DJ can have many storage backends, one of the most used is based on Active Record. Read more about Delayed Job here.
To use Delayed Job, set the queue_adapter config to :delayed_job
.
Rails.application.config.active_job.queue_adapter = :delayed_job
Methods
Class Public methods
new(enqueue_after_transaction_commit: false)
📝 Source code
# File activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb, line 19
def initialize(enqueue_after_transaction_commit: false)
@enqueue_after_transaction_commit = enqueue_after_transaction_commit
end
🔎 See on GitHub