fix(monitor): exit monitor engine in time when happen err

This commit is contained in:
zhaoxiangchun
2021-06-21 16:12:24 +08:00
parent f127585611
commit 894d12f903
+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