Skip to content

Commit

Permalink
fix: Fixed mutex with withSequence in http template broken. Fixes arg…
Browse files Browse the repository at this point in the history
…oproj#12018

Signed-off-by: shmruin <meme_hm@naver.com>
  • Loading branch information
shmruin committed Nov 10, 2023
1 parent 873bacb commit 182f2c6
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
Original file line number Diff line number Diff line change
Expand Up @@ -2993,6 +2993,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
Original file line number Diff line number Diff line change
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 182f2c6

Please sign in to comment.