Skip to content

Commit

Permalink
Ensure workflow key is fully specified (#4351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt McShane committed May 17, 2023
1 parent b9a9029 commit ab2f6b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/history/api/updateworkflow/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func Invoke(
return consts.ErrWorkflowCompleted
}

// wfKey built from request may have blank RunID so assign a fully
// populated version
wfKey = ms.GetWorkflowKey()

if req.GetRequest().GetFirstExecutionRunId() != "" && ms.GetExecutionInfo().GetFirstExecutionRunId() != req.GetRequest().GetFirstExecutionRunId() {
return consts.ErrWorkflowExecutionNotFound
}
Expand Down

0 comments on commit ab2f6b9

Please sign in to comment.