From da1df02813610e1071aee4986fa0ed87fc7b985f Mon Sep 17 00:00:00 2001 From: Kyle Brandt Date: Thu, 14 Nov 2019 15:49:31 -0500 Subject: [PATCH] transform_plugin: stop plugin when grafana stops (#20397) fixes https://github.com/grafana/gel-app/issues/49 until #20362 --- pkg/plugins/plugins.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/plugins/plugins.go b/pkg/plugins/plugins.go index 43e9681a3e7..1ef147383d1 100644 --- a/pkg/plugins/plugins.go +++ b/pkg/plugins/plugins.go @@ -149,6 +149,10 @@ func (pm *PluginManager) Run(ctx context.Context) error { p.Kill() } + if Transform != nil { + Transform.Kill() + } + return ctx.Err() }