Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): do not lock workflow run on release and promote #6332

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions engine/api/workflow/workflow_run_results.go
Original file line number Diff line number Diff line change
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