Add store phase and update Arpnip::Nodes to use it (#538)

* add store phase

* rework arpnip nodes to use store phase

* add late phase too so that users can still access content in db
This commit is contained in:
Oliver Gorwits
2019-03-15 05:20:57 +00:00
committed by GitHub
parent 154db22ac0
commit b5329d228b
4 changed files with 52 additions and 33 deletions

View File

@@ -93,7 +93,7 @@ phase.
sub finalise_status {
my $job = shift;
# use DDP; p $job->_statuslist;
# use DDP; p $job->_statuslist;
# fallback
$job->status('error');
@@ -103,7 +103,7 @@ sub finalise_status {
foreach my $status (reverse @{ $job->_statuslist }) {
next if $status->phase
and $status->phase !~ m/^(?:check|early|main)$/;
and $status->phase !~ m/^(?:check|early|main|store|late)$/;
# done() from check phase should not be the action's done()
next if $status->phase eq 'check' and $status->is_ok;