Skip to content

Commit

Permalink
fix: Fixed mutex with withSequence in http template broken. Fixes #12018
Browse files Browse the repository at this point in the history
 (#12176)

Signed-off-by: shmruin <meme_hm@naver.com>
Signed-off-by: Isitha Subasinghe <isubasinghe@student.unimelb.edu.au>
  • Loading branch information
shmruin authored and isubasinghe committed Feb 28, 2024
1 parent 23b1a4b commit 16c4970
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/apis/workflow/v1alpha1/workflow_types.go
Expand Up @@ -3015,6 +3015,8 @@ func (tmpl *Template) GetNodeType() NodeType {
return NodeTypeSteps
case TemplateTypeSuspend:
return NodeTypeSuspend
case TemplateTypeHTTP:
return NodeTypeHTTP
case TemplateTypePlugin:
return NodeTypePlugin
}
Expand Down
2 changes: 2 additions & 0 deletions workflow/controller/http_template.go
Expand Up @@ -8,6 +8,8 @@ func (woc *wfOperationCtx) executeHTTPTemplate(nodeName string, templateScope st
node, err := woc.wf.GetNodeByName(nodeName)
if err != nil {
node = woc.initializeExecutableNode(nodeName, wfv1.NodeTypeHTTP, templateScope, tmpl, orgTmpl, opts.boundaryID, wfv1.NodePending, opts.nodeFlag)
}
if !node.Fulfilled() {
woc.taskSet[node.ID] = *tmpl
}
return node
Expand Down

0 comments on commit 16c4970

Please sign in to comment.