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

@@ -12,7 +12,9 @@ use namespace::clean;
has [qw/workers_check
workers_early
workers_main
workers_user/] => ( is => 'rw' );
workers_user
workers_store
workers_late/] => ( is => 'rw' );
sub load_workers {
my $self = shift;
@@ -37,7 +39,7 @@ sub load_workers {
my $workers = vars->{'workers'}->{$action} || {};
#use DDP; p vars->{'workers'};
foreach my $phase (qw/check early main user/) {
foreach my $phase (qw/check early main user store late/) {
my $pname = "workers_${phase}";
my @wset = ();