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

This commit is contained in:
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

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,