From 4e10abdb91a602fa0fa79d330b5c6588fa72aff2 Mon Sep 17 00:00:00 2001 From: badhezi Date: Wed, 8 Oct 2025 11:38:43 +0300 Subject: [PATCH] skip email notification trigger when run is not in final state --- services/mailer/mail_workflow_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mailer/mail_workflow_run.go b/services/mailer/mail_workflow_run.go index 3789102812..ed84e621ea 100644 --- a/services/mailer/mail_workflow_run.go +++ b/services/mailer/mail_workflow_run.go @@ -153,7 +153,7 @@ func MailActionsTrigger(ctx context.Context, sender *user_model.User, repo *repo if setting.MailService == nil { return nil } - if !run.Status.IsDone() || run.Status.IsSkipped() { + if !run.Status.IsDone() || run.Status.IsSkipped() || (run.Started == 0 && run.Stopped == 0) { return nil }