load workers when runner role is loaded

This commit is contained in:
Oliver Gorwits
2017-09-04 20:30:58 +01:00
parent a8c58a7b05
commit 3099eda393
3 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,6 @@ BEGIN {
setting('workers')->{'BACKEND'} ||= (hostfqdn || 'fqdn-undefined'); setting('workers')->{'BACKEND'} ||= (hostfqdn || 'fqdn-undefined');
} }
use App::Netdisco::Backend;
use App::Netdisco::Util::MCE; # set $0 and parse maxworkers 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;

View File

@@ -35,7 +35,6 @@ BEGIN {
# for netdisco app config # for netdisco app config
use App::Netdisco; use App::Netdisco;
use App::Netdisco::Backend;
use App::Netdisco::Backend::Job; use App::Netdisco::Backend::Job;
use Dancer qw/:moose :script/; use Dancer qw/:moose :script/;

View File

@@ -2,6 +2,8 @@ package App::Netdisco::Backend::Runner;
use Dancer ':moose :syntax'; use Dancer ':moose :syntax';
use Dancer::Factory::Hook; use Dancer::Factory::Hook;
use App::Netdisco::Backend;
use aliased 'App::Netdisco::Worker::Status'; use aliased 'App::Netdisco::Worker::Status';
use Try::Tiny; use Try::Tiny;