add late phase too so that users can still access content in db
This commit is contained in:
@@ -103,7 +103,7 @@ sub finalise_status {
|
|||||||
|
|
||||||
foreach my $status (reverse @{ $job->_statuslist }) {
|
foreach my $status (reverse @{ $job->_statuslist }) {
|
||||||
next if $status->phase
|
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()
|
# done() from check phase should not be the action's done()
|
||||||
next if $status->phase eq 'check' and $status->is_ok;
|
next if $status->phase eq 'check' and $status->is_ok;
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ has [qw/workers_check
|
|||||||
workers_early
|
workers_early
|
||||||
workers_main
|
workers_main
|
||||||
workers_user
|
workers_user
|
||||||
workers_store/] => ( is => 'rw' );
|
workers_store
|
||||||
|
workers_late/] => ( is => 'rw' );
|
||||||
|
|
||||||
sub load_workers {
|
sub load_workers {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
@@ -38,7 +39,7 @@ sub load_workers {
|
|||||||
my $workers = vars->{'workers'}->{$action} || {};
|
my $workers = vars->{'workers'}->{$action} || {};
|
||||||
#use DDP; p vars->{'workers'};
|
#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 $pname = "workers_${phase}";
|
||||||
my @wset = ();
|
my @wset = ();
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ sub run {
|
|||||||
|
|
||||||
# run other phases
|
# run other phases
|
||||||
if ($job->check_passed) {
|
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/;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user