Skip to content

Commit 96ab4c5

Browse files
authored
fix: 解决计划任务告警误报的问题 (#6825)
1 parent 96cf46d commit 96ab4c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/init/hook/hook.go

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func initDir() {
227227
}
228228

229229
func handleCronJobAlert(cronjob *model.Cronjob) {
230+
if cronjob.Type == "snapshot" {
231+
return
232+
}
230233
pushAlert := dto.PushAlert{
231234
TaskName: cronjob.Name,
232235
AlertType: cronjob.Type,

0 commit comments

Comments
 (0)