disambiguate util/backend package and remove backend prelaod
This commit is contained in:
@@ -29,26 +29,10 @@ BEGIN {
|
|||||||
setting('workers')->{'BACKEND'} ||= (hostfqdn || 'fqdn-undefined');
|
setting('workers')->{'BACKEND'} ||= (hostfqdn || 'fqdn-undefined');
|
||||||
}
|
}
|
||||||
|
|
||||||
use App::Netdisco::Util::Backend;
|
use App::Netdisco::Util::MCE; # set $0 and parse maxworkers
|
||||||
use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors
|
use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors
|
||||||
use Role::Tiny::With;
|
use Role::Tiny::With;
|
||||||
|
|
||||||
# preload all worker modules into shared memory
|
|
||||||
use App::Netdisco::Backend::Job ();
|
|
||||||
use App::Netdisco::Backend::Util ();
|
|
||||||
use App::Netdisco::Backend::Worker::Common ();
|
|
||||||
use App::Netdisco::Backend::Worker::Interactive::DeviceActions ();
|
|
||||||
use App::Netdisco::Backend::Worker::Interactive::PortActions ();
|
|
||||||
use App::Netdisco::Backend::Worker::Manager ();
|
|
||||||
use App::Netdisco::Backend::Worker::Poller::Arpnip ();
|
|
||||||
use App::Netdisco::Backend::Worker::Poller::Common ();
|
|
||||||
use App::Netdisco::Backend::Worker::Poller::Device ();
|
|
||||||
use App::Netdisco::Backend::Worker::Poller::Expiry ();
|
|
||||||
use App::Netdisco::Backend::Worker::Poller::Macsuck ();
|
|
||||||
use App::Netdisco::Backend::Worker::Poller::Nbtstat ();
|
|
||||||
use App::Netdisco::Backend::Worker::Poller ();
|
|
||||||
use App::Netdisco::Backend::Worker::Scheduler ();
|
|
||||||
|
|
||||||
use MCE::Signal '-setpgrp';
|
use MCE::Signal '-setpgrp';
|
||||||
use MCE::Flow Sereal => 1;
|
use MCE::Flow Sereal => 1;
|
||||||
use MCE::Queue;
|
use MCE::Queue;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package App::Netdisco::Backend::Worker::Common;
|
|||||||
use Dancer qw/:moose :syntax :script/;
|
use Dancer qw/:moose :syntax :script/;
|
||||||
|
|
||||||
use Try::Tiny;
|
use Try::Tiny;
|
||||||
use App::Netdisco::Util::Backend;
|
use App::Netdisco::Util::MCE;
|
||||||
|
|
||||||
use Role::Tiny;
|
use Role::Tiny;
|
||||||
use namespace::clean;
|
use namespace::clean;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package App::Netdisco::Backend::Worker::Manager;
|
|||||||
use Dancer qw/:moose :syntax :script/;
|
use Dancer qw/:moose :syntax :script/;
|
||||||
|
|
||||||
use List::Util 'sum';
|
use List::Util 'sum';
|
||||||
use App::Netdisco::Util::Backend;
|
use App::Netdisco::Util::MCE;
|
||||||
|
|
||||||
use Role::Tiny;
|
use Role::Tiny;
|
||||||
use namespace::clean;
|
use namespace::clean;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package App::Netdisco::Backend::Worker::Scheduler;
|
|||||||
use Dancer qw/:moose :syntax :script/;
|
use Dancer qw/:moose :syntax :script/;
|
||||||
|
|
||||||
use Algorithm::Cron;
|
use Algorithm::Cron;
|
||||||
use App::Netdisco::Util::Backend;
|
use App::Netdisco::Util::MCE;
|
||||||
|
|
||||||
use Role::Tiny;
|
use Role::Tiny;
|
||||||
use namespace::clean;
|
use namespace::clean;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package App::Netdisco::Util::Backend;
|
package App::Netdisco::Util::MCE;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
Reference in New Issue
Block a user