From c369ff11c47abeff836cca5bce0612f4e1117b88 Mon Sep 17 00:00:00 2001 From: Richard LT Date: Mon, 17 Oct 2022 10:44:01 +0200 Subject: [PATCH] fix(api): do not lock workflow run on release and promote (#6332) --- engine/api/workflow/workflow_run_results.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/api/workflow/workflow_run_results.go b/engine/api/workflow/workflow_run_results.go index 8b7eb2b11d..29931dd73b 100644 --- a/engine/api/workflow/workflow_run_results.go +++ b/engine/api/workflow/workflow_run_results.go @@ -460,7 +460,7 @@ func UpdateRunResult(ctx context.Context, db gorp.SqlExecutor, result *sdk.Workf func SyncRunResultArtifactManagerByRunID(ctx context.Context, db gorpmapper.SqlExecutorWithTx, workflowRunID int64) error { log.Info(ctx, "Sync run results for workflow run id %d", workflowRunID) - wr, err := LoadAndLockRunByID(ctx, db, workflowRunID, LoadRunOptions{}) + wr, err := LoadRunByID(ctx, db, workflowRunID, LoadRunOptions{}) if err != nil { return err } @@ -656,7 +656,7 @@ func ProcessRunResultPromotionByRunID(ctx context.Context, db gorpmapper.SqlExec log.Info(ctx, "Process promotion for run results %v and workflow run with id %d to maturity %s", promotionRequest.IDs, workflowRunID, promotionRequest.ToMaturity) - wr, err := LoadAndLockRunByID(ctx, db, workflowRunID, LoadRunOptions{}) + wr, err := LoadRunByID(ctx, db, workflowRunID, LoadRunOptions{}) if err != nil { return err }