fix(unified-storage): fix graceful termination for grafana target servers (#103520)

This commit is contained in:
Mustafa Sencer Özcan
2025-04-08 11:45:10 +02:00
committed by GitHub
parent 5c53d33c8e
commit 56b4e5670d
4 changed files with 40 additions and 54 deletions

View File

@ -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
}