Merge pull request #511 from ClusterCockpit/dev

Safeguard metricstore shutdown if internal metricstore is not initial…
This commit is contained in:
Jan Eitzinger
2026-03-05 10:40:18 +01:00
committed by GitHub

View File

@@ -424,7 +424,11 @@ func (s *Server) Shutdown(ctx context.Context) {
}
// Archive all the metric store data
ms := metricstore.GetMemoryStore()
if ms != nil {
metricstore.Shutdown()
}
// Shutdown archiver with 10 second timeout for fast shutdown
if err := archiver.Shutdown(10 * time.Second); err != nil {