Commit a1d37d9e authored by Leo Gordon's avatar Leo Gordon
Browse files

code optimization suggested by Matthieu

parent 4da57a10
......@@ -591,8 +591,9 @@ sub release_undone_jobs_from_worker {
my $cod = $worker->cause_of_death();
$msg ||= "GarbageCollector: The worker died because of $cod";
while(my ($job_id, $retry_count) = $sth->fetchrow_array()) {
my $resource_overusage = ($cod eq 'MEMLIMIT') || ($cod eq 'RUNLIMIT' and $worker->work_done()==0);
my $resource_overusage = ($cod eq 'MEMLIMIT') || ($cod eq 'RUNLIMIT' and $worker->work_done()==0);
while(my ($job_id) = $sth->fetchrow_array()) {
my $passed_on = 0; # the flag indicating that the garbage_collection was attempted and was successful
......
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