Skip to content

Commit

Permalink
Allow active InfraConversionJob to be throttled
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Sep 9, 2019
1 parent 2d001e0 commit ea17a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/job_proxy_dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def assign_proxy_to_job(proxy, job)
end

def self.waiting?
Job.where(:state => 'waiting_to_start').exists?
Job.where(:state => 'waiting_to_start').exists? || InfraConversionJob.where.not(:state => ['finished', 'waiting_to_start']).exists?
end

def pending_jobs(job_class = VmScan)
Expand Down

0 comments on commit ea17a7b

Please sign in to comment.