From e21252f14740e55aea83d6f4208771060def49ef Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 23 Dec 2023 12:18:51 +0100 Subject: [PATCH] [ACTIONS] on.schedule: do not cancel jobs The cancelation of jobs is taken care of by handleWorkflows which is called right after handleSchedules with the same event. (cherry picked from commit ad1af2e436f60bc56cbd7528b7e22aa4a2530976) --- services/actions/notifier_helper.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/services/actions/notifier_helper.go b/services/actions/notifier_helper.go index b5c13a15dd..50e4ebc66e 100644 --- a/services/actions/notifier_helper.go +++ b/services/actions/notifier_helper.go @@ -460,18 +460,6 @@ func handleSchedules( Content: dwf.Content, } - // cancel running jobs if the event is push - if run.Event == webhook_module.HookEventPush { - // cancel running jobs of the same workflow - if err := actions_model.CancelRunningJobs( - ctx, - run.RepoID, - run.Ref, - run.WorkflowID, - ); err != nil { - log.Error("CancelRunningJobs: %v", err) - } - } crons = append(crons, run) }