ActiveJob::QueueAdapters::AsyncAdapter
class ActiveJob::QueueAdapters::AsyncAdapter
Active Job Async adapter
The Async adapter runs jobs with an in-process thread pool.
This is the default queue adapter. It's well-suited for dev/test since it doesn't need an external infrastructure, but it's a poor fit for production since it drops pending jobs on restart.
To use this adapter, set queue adapter to :async
:
config.active_job.queue_adapter = :async
To configure the adapter's thread pool, instantiate the adapter and pass your own config:
config.active_job.queue_adapter = ActiveJob::QueueAdapter