add late phase too so that users can still access content in db

This commit is contained in:
Oliver Gorwits
2019-03-14 22:03:08 +00:00
parent 4e63a2be10
commit a6af25672b
3 changed files with 5 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ sub finalise_status {
foreach my $status (reverse @{ $job->_statuslist }) {
next if $status->phase
and $status->phase !~ m/^(?:check|early|main|store)$/;
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;

View File

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

View File

@@ -69,7 +69,7 @@ sub run {
# run other phases
if ($job->check_passed) {
$self->run_workers("workers_${_}") for qw/early main user store/;
$self->run_workers("workers_${_}") for qw/early main user store late/;
}
};