Skip to content

Commit af7300d

Browse files
committed
fix dispatch
1 parent 71b9dea commit af7300d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

services/actions/workflow.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -277,17 +277,6 @@ func DispatchActionWorkflow(ctx reqctx.RequestContext, doer *user_model.User, re
277277
}
278278
}
279279

280-
// cancel running jobs of the same workflow
281-
if err := actions_model.CancelPreviousJobs(
282-
ctx,
283-
run.RepoID,
284-
run.Ref,
285-
run.WorkflowID,
286-
run.Event,
287-
); err != nil {
288-
log.Error("CancelRunningJobs: %v", err)
289-
}
290-
291280
// Insert the action run and its associated jobs into the database
292281
if err := InsertRun(ctx, run, workflows); err != nil {
293282
return fmt.Errorf("InsertRun: %w", err)

0 commit comments

Comments
 (0)