Merge pull request #11456 from zhaoxiangchun/automated-cherry-pick-of-#11454-upstream-release-3.7

Automated cherry pick of #11454: fix(monitor): exit monitor engine in time when happen err
This commit is contained in:
Zexi Li
2021-06-21 23:49:48 +08:00
committed by GitHub
+3
View File
@@ -211,6 +211,9 @@ func (e *AlertEngine) processJob(attemptID int, attemptChan chan int, cancelChan
attemptChan <- (attemptID + 1)
return
}
log.Errorf("gt AlertingMaxAttempts, error: %v", evalContext.Error)
close(attemptChan)
return
}
// create new context with timeout for notifications