fix(actions): deadlock between PrepareRunAndInsert and UpdateTaskByState (#37692) (#37718)

This commit is contained in:
Zettat123
2026-05-15 23:02:14 -06:00
committed by GitHub
parent 1d5163133b
commit 7b82ded82a
8 changed files with 65 additions and 39 deletions
+3
View File
@@ -124,6 +124,9 @@ func prepareRunRerun(ctx context.Context, repo *repo_model.Repository, run *acti
job.Run = run
}
// Recomputes the repository's num_action_runs / num_closed_action_runs counters since the run's status changed
actions_model.UpdateRepoRunsNumbers(ctx, run.RepoID)
notify_service.WorkflowRunStatusUpdate(ctx, run.Repo, run.TriggerUser, run)
return run.Status == actions_model.StatusBlocked, nil