hooks only queued if their trigger job is successful (done)
This commit is contained in:
@@ -11,6 +11,12 @@ register_worker({ phase => 'late' }, sub {
|
||||
my ($job, $workerconf) = @_;
|
||||
my $count = 0;
|
||||
|
||||
my $best = $job->best_status;
|
||||
if (Status->$best->level != Status->done->level) {
|
||||
return Status
|
||||
->info(sprintf ' [%s] hooks - skipping due to incomplete job', $job->device);
|
||||
}
|
||||
|
||||
foreach my $conf (@{ setting('hooks') }) {
|
||||
my $no = ($conf->{'filter'}->{'no'} || []);
|
||||
my $only = ($conf->{'filter'}->{'only'} || []);
|
||||
|
||||
@@ -11,6 +11,12 @@ register_worker({ phase => 'late' }, sub {
|
||||
my ($job, $workerconf) = @_;
|
||||
my $count = 0;
|
||||
|
||||
my $best = $job->best_status;
|
||||
if (Status->$best->level != Status->done->level) {
|
||||
return Status
|
||||
->info(sprintf ' [%s] hooks - skipping due to incomplete job', $job->device);
|
||||
}
|
||||
|
||||
foreach my $conf (@{ setting('hooks') }) {
|
||||
my $no = ($conf->{'filter'}->{'no'} || []);
|
||||
my $only = ($conf->{'filter'}->{'only'} || []);
|
||||
|
||||
@@ -11,6 +11,12 @@ register_worker({ phase => 'late' }, sub {
|
||||
my ($job, $workerconf) = @_;
|
||||
my $count = 0;
|
||||
|
||||
my $best = $job->best_status;
|
||||
if (Status->$best->level != Status->done->level) {
|
||||
return Status
|
||||
->info(sprintf ' [%s] hooks - skipping due to incomplete job', $job->device);
|
||||
}
|
||||
|
||||
foreach my $conf (@{ setting('hooks') }) {
|
||||
my $no = ($conf->{'filter'}->{'no'} || []);
|
||||
my $only = ($conf->{'filter'}->{'only'} || []);
|
||||
|
||||
@@ -11,6 +11,12 @@ register_worker({ phase => 'late' }, sub {
|
||||
my ($job, $workerconf) = @_;
|
||||
my $count = 0;
|
||||
|
||||
my $best = $job->best_status;
|
||||
if (Status->$best->level != Status->done->level) {
|
||||
return Status
|
||||
->info(sprintf ' [%s] hooks - skipping due to incomplete job', $job->device);
|
||||
}
|
||||
|
||||
foreach my $conf (@{ setting('hooks') }) {
|
||||
my $no = ($conf->{'filter'}->{'no'} || []);
|
||||
my $only = ($conf->{'filter'}->{'only'} || []);
|
||||
|
||||
Reference in New Issue
Block a user