stash workers within poller instance, and load plugins explicitly

This commit is contained in:
Oliver Gorwits
2017-11-15 22:09:05 +00:00
parent 2431365583
commit 620b3fe544
7 changed files with 106 additions and 66 deletions

View File

@@ -7,9 +7,6 @@ use App::Netdisco::Util::Permission qw/check_acl_no check_acl_only/;
use aliased 'App::Netdisco::Worker::Status';
use Scope::Guard 'guard';
Dancer::Factory::Hook->instance()->install_hooks("nd2_core_${_}")
for qw/check early main user/;
register 'register_worker' => sub {
my ($self, $first, $second) = plugin_args(@_);