Commit 90566e7e authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: count both DONE and PASSED_ON jobs when re-balancing semaphores

parent 46a948c3
......@@ -700,7 +700,7 @@ sub balance_semaphores {
my ($self, $filter_analysis_id) = @_;
my $find_sql = qq{
SELECT funnel.job_id, funnel.semaphore_count was, COALESCE(SUM(fan.status!='DONE'),0) should
SELECT funnel.job_id, funnel.semaphore_count was, COALESCE(SUM(fan.status!='DONE' AND fan.status!='PASSED_ON'),0) should
FROM job funnel
LEFT JOIN job fan ON (funnel.job_id=fan.semaphored_job_id)
WHERE }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment