mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-11-08 18:24:31 +00:00
[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 commitad1af2e436) (cherry picked from commite21252f147) (cherry picked from commit08195803eb)
This commit is contained in:
parent
d10830e238
commit
9ddecee23a
1 changed files with 0 additions and 12 deletions
|
|
@ -461,18 +461,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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue