mirror of
https://github.com/grafana/grafana.git
synced 2025-09-25 19:03:53 +08:00
fix(unified-storage): fix graceful termination for grafana target servers (#103520)
This commit is contained in:

committed by
GitHub

parent
5c53d33c8e
commit
56b4e5670d
@ -100,8 +100,9 @@ func (m *service) Run(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
err = m.serviceManager.AwaitStopped(ctx)
|
||||
if err != nil {
|
||||
stopCtx := context.Background()
|
||||
if err = m.serviceManager.AwaitStopped(stopCtx); err != nil {
|
||||
m.log.Error("Failed to stop module service manager", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user