better use of new status class

This commit is contained in:
Oliver Gorwits
2017-09-03 17:58:03 +01:00
parent 8675bf62c6
commit 4def0af0b0
3 changed files with 36 additions and 10 deletions

View File

@@ -39,9 +39,8 @@ sub worker_body {
$wid, $job->job, $job->summary;
info sprintf "pol (%s): starting %s job(%s) at %s",
$wid, $action, $job->job, $job->started;
my ($status, $log) = $self->$action($job);
$job->status($status);
$job->log($log);
my $status = $self->$action($job); # TODO
$status->update_job($job);
}
catch {
$job->status('error');