Skip to content

Commit

Permalink
fix(api): do not lock workflow run on release and promote (#6332)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt committed Oct 17, 2022
1 parent 465bd86 commit c369ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/api/workflow/workflow_run_results.go
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit c369ff1

Please sign in to comment.