rails/activejob/test/adapters/async.rb
Jeremy Daer a66780bfff Active Job: smaller footprint for the dev/test async adapter
Use one shared worker pool for all queues with 0-#CPU workers rather
than separate pools per queue with 2-10*#CPU workers each.
2016-02-29 15:58:26 -07:00

3 lines
86 B
Ruby

ActiveJob::Base.queue_adapter = :async
ActiveJob::Base.queue_adapter.immediate = true