$msg = $task->{status};
}
- $rest_env->log_cluster_msg($pri, $user, "end task $upid $msg")
- if $rest_env;
+ $rest_env->log_cluster_msg($pri, $user, "end task $upid $msg");
};
my $worker_reaper = sub {
# we try to reduce the amount of data
# list all running tasks and task and a few others
# try to limit to 25 tasks
- my $ctime = time();
my $max = 25 - scalar(@$tlist);
foreach my $task (@ta) {
last if $max <= 0;