fix: 解决计划任务告警误报的问题 (#6825)

pull/6836/head v1.10.20-lts
ssongliu 2024-10-23 22:08:19 +08:00 committed by GitHub
parent 96cf46d834
commit 96ab4c53af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,9 @@ func initDir() {
}
func handleCronJobAlert(cronjob *model.Cronjob) {
if cronjob.Type == "snapshot" {
return
}
pushAlert := dto.PushAlert{
TaskName: cronjob.Name,
AlertType: cronjob.Type,