0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-11 04:24:44 +01:00
This commit is contained in:
Christopher Homberger 2025-11-04 00:03:57 +01:00
parent 1f8e3b6fb8
commit 1a2e85020a

View File

@ -315,7 +315,9 @@ func CancelJobs(ctx context.Context, jobs []*ActionRunJob) ([]*ActionRunJob, err
} }
for runID, job := range runsToUpdate { for runID, job := range runsToUpdate {
UpdateRunStatus(ctx, job.RepoID, runID) if err := UpdateRunStatus(ctx, job.RepoID, runID); err != nil {
return cancelledJobs, err
}
} }
// Return nil to indicate successful cancellation of all running and waiting jobs. // Return nil to indicate successful cancellation of all running and waiting jobs.