From 9bba25e72dbd2fe1f03bd96cb675c83ddb91d45b Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Tue, 15 Jul 2025 12:16:45 +0200 Subject: [PATCH] remove code --- models/actions/run_job.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/models/actions/run_job.go b/models/actions/run_job.go index 202ed99e74f..a70c6513021 100644 --- a/models/actions/run_job.go +++ b/models/actions/run_job.go @@ -267,16 +267,6 @@ func CancelPreviousJobsByJobConcurrency(ctx context.Context, job *ActionRunJob) } } - if err := job.LoadRun(ctx); err != nil { - return cancelledJobs, fmt.Errorf("load run: %w", err) - } - - cancelledJobsByRun, err := CancelPreviousJobsByRunConcurrency(ctx, job.Run) - if err != nil { - return cancelledJobs, fmt.Errorf("cancel runs: %w", err) - } - cancelledJobs = append(cancelledJobs, cancelledJobsByRun...) - return cancelledJobs, nil }