Alerting: Add ability to control scheduler tick interval via config (#71980)

* add ability to control scheduler interval via config
* add feature flag `configurableSchedulerTick`
This commit is contained in:
Yuri Tseretyan
2023-07-26 12:44:12 -04:00
committed by GitHub
parent 8415dd40d7
commit c7598cc6fb
7 changed files with 70 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ func NewScheduler(cfg SchedulerCfg, stateManager *state.Manager) *schedule {
}
func (sch *schedule) Run(ctx context.Context) error {
sch.log.Info("Starting scheduler", "tickInterval", sch.baseInterval)
t := ticker.New(sch.clock, sch.baseInterval, sch.metrics.Ticker)
defer t.Stop()