store result of worker if best for this phase so far
This commit is contained in:
@@ -82,6 +82,7 @@ sub run_workers {
|
|||||||
|
|
||||||
return unless scalar @{ $store->get_hooks_for($hook) };
|
return unless scalar @{ $store->get_hooks_for($hook) };
|
||||||
debug "running workers for hook: $hook";
|
debug "running workers for hook: $hook";
|
||||||
|
my $max_level = 0;
|
||||||
|
|
||||||
foreach my $worker (@{ $store->get_hooks_for($hook) }) {
|
foreach my $worker (@{ $store->get_hooks_for($hook) }) {
|
||||||
try {
|
try {
|
||||||
@@ -92,8 +93,7 @@ sub run_workers {
|
|||||||
# update (save) the status if we're in check or main phases
|
# update (save) the status if we're in check or main phases
|
||||||
# because these logs can end up in the job queue as status message
|
# because these logs can end up in the job queue as status message
|
||||||
$self->jobstat($retval)
|
$self->jobstat($retval)
|
||||||
if ($phase =~ m/^(?:check|main)$/)
|
if ($phase =~ m/^(?:check|main)$/) and $retval->level >= $max_level;
|
||||||
and $retval->level >= $self->jobstat->level;
|
|
||||||
|
|
||||||
debug $retval->log if $retval->log;
|
debug $retval->log if $retval->log;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user