Skip to content

Commit 4e10abd

Browse files
committed
skip email notification trigger when run is not in final state
1 parent be19565 commit 4e10abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/mailer/mail_workflow_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func MailActionsTrigger(ctx context.Context, sender *user_model.User, repo *repo
153153
if setting.MailService == nil {
154154
return nil
155155
}
156-
if !run.Status.IsDone() || run.Status.IsSkipped() {
156+
if !run.Status.IsDone() || run.Status.IsSkipped() || (run.Started == 0 && run.Stopped == 0) {
157157
return nil
158158
}
159159

0 commit comments

Comments
 (0)