Skip to content

Commit 3f839ff

Browse files
committed
fix schedule concurrency
1 parent be3e6d3 commit 3f839ff

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

services/actions/schedule_tasks.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,6 @@ func startTasks(ctx context.Context) error {
5252

5353
// Loop through each spec and create a schedule task for it
5454
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-
6955
if row.Repo.IsArchived {
7056
// Skip if the repo is archived
7157
continue

0 commit comments

Comments
 (0)