Skip to content

Commit ec74def

Browse files
authored
fix(api): load to delete run when updating node run job status (#5208)
1 parent 71bb5bf commit ec74def

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/api/workflow/execute_node_job_run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ func UpdateNodeJobRunStatus(ctx context.Context, db gorp.SqlExecutor, store cach
161161
job.Status = status
162162

163163
_, next := observability.Span(ctx, "workflow.LoadRunByID")
164-
wf, errLoadWf := LoadRunByID(db, nodeRun.WorkflowRunID, LoadRunOptions{})
164+
wf, errLoadWf := LoadRunByID(db, nodeRun.WorkflowRunID, LoadRunOptions{
165+
WithDeleted: true,
166+
})
165167
next()
166168
if errLoadWf != nil {
167169
return nil, sdk.WrapError(errLoadWf, "workflow.UpdateNodeJobRunStatus> Unable to load run id %d", nodeRun.WorkflowRunID)

0 commit comments

Comments
 (0)