We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be3e6d3 commit 3f839ffCopy full SHA for 3f839ff
services/actions/schedule_tasks.go
@@ -52,20 +52,6 @@ func startTasks(ctx context.Context) error {
52
53
// Loop through each spec and create a schedule task for it
54
for _, row := range specs {
55
- // cancel running jobs if the event is push
56
- if row.Schedule.Event == webhook_module.HookEventPush {
57
- // cancel running jobs of the same workflow
58
- if err := actions_model.CancelPreviousJobs(
59
- ctx,
60
- row.RepoID,
61
- row.Schedule.Ref,
62
- row.Schedule.WorkflowID,
63
- webhook_module.HookEventSchedule,
64
- ); err != nil {
65
- log.Error("CancelPreviousJobs: %v", err)
66
- }
67
68
-
69
if row.Repo.IsArchived {
70
// Skip if the repo is archived
71
continue
0 commit comments