Alerting: Run state manager as regular sub-service (#58246)

This commit is contained in:
Yuri Tseretyan
2022-11-04 17:06:47 -04:00
committed by GitHub
parent e6a9fa1cf9
commit 978f1119d7
3 changed files with 22 additions and 30 deletions

View File

@@ -298,8 +298,6 @@ func (sch *schedule) schedulePeriodic(ctx context.Context, t *ticker.T) error {
case <-ctx.Done():
// waiting for all rule evaluation routines to stop
waitErr := dispatcherGroup.Wait()
// close the state manager and flush the state
sch.stateManager.Close()
return waitErr
}
}