mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-07 00:27:29 +01:00
Merge pull request #511 from ClusterCockpit/dev
Safeguard metricstore shutdown if internal metricstore is not initial…
This commit is contained in:
@@ -424,7 +424,11 @@ func (s *Server) Shutdown(ctx context.Context) {
|
||||
}
|
||||
|
||||
// Archive all the metric store data
|
||||
metricstore.Shutdown()
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user