This commit is contained in:
Oliver Gorwits
2017-11-08 20:29:33 +00:00
parent 1eeaba441d
commit e0c6615c87
3 changed files with 9 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ Find the best status and log it into the job's C<status> and C<log> slots.
sub finalise_status {
my $job = shift;
my $max_level = Status->error()->level;
# use DDP; p $job->_statuslist;
# fallback
$job->status('error');
@@ -85,6 +86,8 @@ C<done>.
sub check_passed {
my $job = shift;
return true if 0 == scalar @{ $job->_statuslist };
foreach my $status (@{ $job->_statuslist }) {
next unless $status->phase and $status->phase eq 'check';
return true if $status->is_ok;