Alerting: rule evaluation loop's update channel to provide version (#52170)

* handler for update message in rule evaluation routine ignores the message if its version greater or equal.
* replace messages to update the channel if it is not empty
This commit is contained in:
Yuriy Tseretyan
2022-07-15 12:32:52 -04:00
committed by GitHub
parent 17ec9cac83
commit a7509ba18b
6 changed files with 114 additions and 37 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ func (srv RulerSrv) updateAlertRulesInGroup(c *models.ReqContext, groupKey ngmod
srv.scheduleService.UpdateAlertRule(ngmodels.AlertRuleKey{
OrgID: c.SignedInUser.OrgId,
UID: rule.Existing.UID,
})
}, rule.Existing.Version+1)
}
for _, rule := range finalChanges.Delete {