mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
alerting: dedupe alert notifications when running multiple servers
alert notifications will only be sent if the database value is updated. ref #6957
This commit is contained in:
@@ -61,6 +61,12 @@ func (handler *DefaultResultHandler) Handle(evalContext *EvalContext) error {
|
||||
handler.log.Error("Cannot change state on alert thats pause", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
if err == m.ErrRequiresNewState {
|
||||
handler.log.Info("Alert already updated")
|
||||
return nil
|
||||
}
|
||||
|
||||
handler.log.Error("Failed to save state", "error", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user