aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/integration/adapters/qu.rb
blob: 12d063ea0dc14603e985321a3682250dd967c8eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module QuJobsManager
  def clear_jobs
    Qu.clear "active_jobs_default"
  end

  def start_workers
    @thread = Thread.new { Qu::Worker.new("active_jobs_default").start }
  end

  def stop_workers
    @thread.kill
  end
end