diff --git a/rules/manager.go b/rules/manager.go index a72cfe777..b9f22b6d5 100644 --- a/rules/manager.go +++ b/rules/manager.go @@ -285,6 +285,12 @@ func typeForRule(r Rule) ruleType { // Eval runs a single evaluation cycle in which all rules are evaluated sequentially. func (g *Group) Eval(ts time.Time) { for i, rule := range g.rules { + select { + case <-g.done: + return + default: + } + rtyp := string(typeForRule(rule)) func(i int, rule Rule) {