introduce noop and refactor checks in all workers
This commit is contained in:
@@ -7,9 +7,13 @@ use aliased 'App::Netdisco::Worker::Status';
|
||||
use App::Netdisco::Util::NodeMonitor ();
|
||||
|
||||
register_worker({ stage => 'check' }, sub {
|
||||
return Status->done('Monitor is able to run');
|
||||
});
|
||||
|
||||
register_worker({ stage => 'main' }, sub {
|
||||
my ($job, $workerconf) = @_;
|
||||
App::Netdisco::Util::NodeMonitor::monitor();
|
||||
return Status->done('Generated monitor data.');
|
||||
return Status->done('Generated monitor data');
|
||||
});
|
||||
|
||||
true;
|
||||
|
||||
Reference in New Issue
Block a user