fiddle about with runner logic to fix exit states

This commit is contained in:
Oliver Gorwits
2017-10-01 08:18:13 +01:00
parent 8fdba38ee0
commit 3b32e84312
5 changed files with 60 additions and 54 deletions

View File

@@ -7,7 +7,7 @@ use aliased 'App::Netdisco::Worker::Status';
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;
debug 'Test (main) ran successfully.';
return Status->done('Test (main) ran successfully.');
return Status->done('Test (main) ran successfully (1).');
});
register_worker({ stage => 'check' }, sub {

View File

@@ -7,7 +7,7 @@ use aliased 'App::Netdisco::Worker::Status';
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;
debug 'Test (main) ran successfully.';
return Status->done('Test (main) ran successfully.');
return Status->done('Test (main) ran successfully (2).');
});
register_worker({ stage => 'check' }, sub {