From 96ab4c53af24204ed2dca32acb0bbf2d9f041780 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:08:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=91=8A=E8=AD=A6=E8=AF=AF=E6=8A=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#6825)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/init/hook/hook.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/init/hook/hook.go b/backend/init/hook/hook.go index 85eca1014..1ddbb8f10 100644 --- a/backend/init/hook/hook.go +++ b/backend/init/hook/hook.go @@ -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,