aboutsummaryrefslogblamecommitdiffstats
path: root/activejob/test/support/integration/adapters/async.rb
blob: ba9674d7a1d1ce619b801253a559ce6cd7c0d583 (plain) (tree)
1
2
3
4
5
6
7
8
9
                             
 


                                          
                                                   


                
                                          

     
# frozen_string_literal: true

module AsyncJobsManager
  def setup
    ActiveJob::Base.queue_adapter = :async
    ActiveJob::Base.queue_adapter.immediate = false
  end

  def clear_jobs
    ActiveJob::Base.queue_adapter.shutdown
  end
end