mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user