Commit a69f9ef5 authored by Javier Herrero's avatar Javier Herrero
Browse files

FIX BUG: When requesting a specific job, the job was re-run until until the...

FIX BUG: When requesting a specific job, the job was re-run until until the workers had run jobs for at least MIN_BATCH_TIME
parent 3e68f318
...@@ -461,7 +461,7 @@ sub run ...@@ -461,7 +461,7 @@ sub run
} }
$batch_end = time() * 1000; $batch_end = time() * 1000;
$job_counter += scalar(@$jobs); $job_counter += scalar(@$jobs);
} while (scalar(@$jobs) and $batch_end-$batch_start < $MIN_BATCH_TIME); ## Run for $MIN_BATCH_TIME at least } while (!$specific_job and scalar(@$jobs) and $batch_end-$batch_start < $MIN_BATCH_TIME); ## Run for $MIN_BATCH_TIME at least
#printf("batch start:%f end:%f\n", $batch_start, $batch_end); #printf("batch start:%f end:%f\n", $batch_start, $batch_end);
$self->db->get_AnalysisStatsAdaptor->interval_update_work_done($self->analysis->dbID, $self->db->get_AnalysisStatsAdaptor->interval_update_work_done($self->analysis->dbID,
......
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