move status update to job class

This commit is contained in:
Oliver Gorwits
2017-09-05 20:41:05 +01:00
parent c8e5cea4ed
commit cd71a0b7a8
3 changed files with 16 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ has 'jobstat' => (
after 'run', 'run_workers' => sub {
my $self = shift;
$self->jobstat->update_job($self->job);
$self->job->update_status($self->jobstat);
};
# mixin code to run workers loaded via plugins