remove unnecessary check phases

This commit is contained in:
Oliver Gorwits
2017-10-06 07:44:20 +01:00
parent e44f06364a
commit b58a5816a9
10 changed files with 1 additions and 37 deletions

View File

@@ -7,10 +7,6 @@ use aliased 'App::Netdisco::Worker::Status';
use App::Netdisco::JobQueue qw/jq_queued jq_insert/;
use Dancer::Plugin::DBIC 'schema';
register_worker({ stage => 'check' }, sub {
return Status->done('Arpwalk is able to run');
});
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;

View File

@@ -7,10 +7,6 @@ use aliased 'App::Netdisco::Worker::Status';
use App::Netdisco::JobQueue qw/jq_queued jq_insert/;
use Dancer::Plugin::DBIC 'schema';
register_worker({ stage => 'check' }, sub {
return Status->done('Discoverall is able to run');
});
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;

View File

@@ -7,10 +7,6 @@ use aliased 'App::Netdisco::Worker::Status';
use Dancer::Plugin::DBIC 'schema';
use App::Netdisco::Util::Statistics 'update_stats';
register_worker({ stage => 'check' }, sub {
return Status->done('Expire is able to run');
});
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;

View File

@@ -6,10 +6,6 @@ use aliased 'App::Netdisco::Worker::Status';
use App::Netdisco::Util::Graph ();
register_worker({ stage => 'check' }, sub {
return Status->done('Graph is able to run');
});
register_worker({ stage => 'main' }, sub {
App::Netdisco::Util::Graph::graph();
return Status->done('Generated graph data');

View File

@@ -7,10 +7,6 @@ use aliased 'App::Netdisco::Worker::Status';
use App::Netdisco::JobQueue qw/jq_queued jq_insert/;
use Dancer::Plugin::DBIC 'schema';
register_worker({ stage => 'check' }, sub {
return Status->done('Macwalk is able to run');
});
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;

View File

@@ -6,10 +6,6 @@ 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();

View File

@@ -7,10 +7,6 @@ use aliased 'App::Netdisco::Worker::Status';
use App::Netdisco::JobQueue qw/jq_queued jq_insert/;
use Dancer::Plugin::DBIC 'schema';
register_worker({ stage => 'check' }, sub {
return Status->done('Nbtwalk is able to run');
});
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;

View File

@@ -4,10 +4,6 @@ use Dancer ':syntax';
use App::Netdisco::Worker::Plugin;
use aliased 'App::Netdisco::Worker::Status';
register_worker({ stage => 'check' }, sub {
return Status->done('Psql is able to run');
});
register_worker({ stage => 'main' }, sub {
my ($job, $workerconf) = @_;
my ($device, $port, $extra) = map {$job->$_} qw/device port extra/;

View File

@@ -6,10 +6,6 @@ use aliased 'App::Netdisco::Worker::Status';
use App::Netdisco::Util::Statistics ();
register_worker({ stage => 'check' }, sub {
return Status->done('Stats is able to run');
});
register_worker({ stage => 'main' }, sub {
App::Netdisco::Util::Statistics::update_stats();
return Status->done('Updated statistics');

View File

@@ -72,7 +72,7 @@ consistency with other Status class methods but really does nothing.
sub noop {
debug $_[1] if $_[1];
return 1;
return true;
}
=head2 is_ok