Commit fc3220b9 authored by Jessica Severin's avatar Jessica Severin
Browse files

added check to make sure there is at least 1 worker if there are jobs

parent 3666825d
...@@ -203,6 +203,7 @@ sub update_analysis_stats { ...@@ -203,6 +203,7 @@ sub update_analysis_stats {
if($status eq 'READY') { if($status eq 'READY') {
$analysisStats->unclaimed_job_count($count); $analysisStats->unclaimed_job_count($count);
my $numWorkers = $count/$analysisStats->batch_size; my $numWorkers = $count/$analysisStats->batch_size;
$numWorkers=1 if($numWorkers<1);
if($analysisStats->hive_capacity>0 and $numWorkers > $analysisStats->hive_capacity) { if($analysisStats->hive_capacity>0 and $numWorkers > $analysisStats->hive_capacity) {
$numWorkers=$analysisStats->hive_capacity; $numWorkers=$analysisStats->hive_capacity;
} }
......
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