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