Skip to content

Commit b060060

Browse files
perlpunkd3flex
authored andcommitted
Remove explicit loading AMQP plugin in Gru plugin
The plugin gets loaded automatically via OpenQA::Setup
1 parent 596f676 commit b060060

File tree

1 file changed

+0
-13
lines changed
  • lib/OpenQA/Shared/Plugin

1 file changed

+0
-13
lines changed

lib/OpenQA/Shared/Plugin/Gru.pm

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,6 @@ sub register ($self, $app, $config) {
9898
});
9999

100100
$self->register_tasks;
101-
my $plugins = $app->config->{global}->{plugins};
102-
if (defined $plugins && $plugins =~ /\bAMQP\b/) {
103-
push @{$app->plugins->namespaces}, 'OpenQA::WebAPI::Plugin' # uncoverable statement
104-
unless grep { $_ eq 'OpenQA::WebAPI::Plugin' } @{$app->plugins->namespaces};
105-
106-
try {
107-
$app->plugin('AMQP');
108-
Mojo::IOLoop->singleton->one_tick; # handle async plugin registration
109-
}
110-
catch ($e) {
111-
log_error("Failed to load AMQP plugin for Gru: $e");
112-
}
113-
}
114101

115102
# Enable the Minion Admin interface under /minion
116103
my $auth = $app->routes->under('/minion')->to('session#ensure_admin');

0 commit comments

Comments
 (0)