add priority and namespace to support fancy worker overrides

This commit is contained in:
Oliver Gorwits
2017-11-04 23:06:20 +00:00
parent b9f9816d09
commit 10f78d5dbe
4 changed files with 82 additions and 13 deletions

View File

@@ -100,6 +100,12 @@ sub run_workers {
catch {
debug "=> $_" if $_;
$self->jobstat->error($_) if $phase eq 'check';
}
# allow workers to know whether previous worker of a different driver
# but the same namespace was successful
finally {
vars->{'last_worker_ok'} = $self->jobstat->is_ok
if not vars->{'last_worker_ok'};
};
}
}