Plugins: Don't start runner ticker for Core plugins (#46964)

* Plugins: Don't start runner ticker for Core plugins

* add test

* correct start check in test
This commit is contained in:
Will Browne
2022-03-30 14:48:49 +02:00
committed by GitHub
parent 114704e2e2
commit 23dde457ef
2 changed files with 21 additions and 5 deletions

View File

@ -185,13 +185,15 @@ func (m *PluginManager) start(ctx context.Context, p *plugins.Plugin) error {
return backendplugin.ErrPluginNotRegistered
}
if p.IsCorePlugin() {
return nil
}
if err := startPluginAndRestartKilledProcesses(ctx, p); err != nil {
return err
}
if !p.IsCorePlugin() {
p.Logger().Debug("Successfully started backend plugin process")
}
p.Logger().Debug("Successfully started backend plugin process")
return nil
}