load workers when runner role is loaded
This commit is contained in:
@@ -29,7 +29,6 @@ BEGIN {
|
||||
setting('workers')->{'BACKEND'} ||= (hostfqdn || 'fqdn-undefined');
|
||||
}
|
||||
|
||||
use App::Netdisco::Backend;
|
||||
use App::Netdisco::Util::MCE; # set $0 and parse maxworkers
|
||||
use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors
|
||||
use Role::Tiny::With;
|
||||
|
||||
@@ -35,7 +35,6 @@ BEGIN {
|
||||
|
||||
# for netdisco app config
|
||||
use App::Netdisco;
|
||||
use App::Netdisco::Backend;
|
||||
use App::Netdisco::Backend::Job;
|
||||
use Dancer qw/:moose :script/;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ package App::Netdisco::Backend::Runner;
|
||||
|
||||
use Dancer ':moose :syntax';
|
||||
use Dancer::Factory::Hook;
|
||||
|
||||
use App::Netdisco::Backend;
|
||||
use aliased 'App::Netdisco::Worker::Status';
|
||||
|
||||
use Try::Tiny;
|
||||
|
||||
Reference in New Issue
Block a user