Every loop of an inline template receives the first item #12594
Labels
area/looping
`withParams`, `withItems`, and `withSequence`
area/workflow-templates
P3
Low priority
solution/workaround
There's a workaround, might not be great, but exists
type/bug
Milestone
Pre-requisites
:latest
What happened/what did you expect to happen?
This only happens when a workflow calls a WorkflowTemplate's template, and this template has:
Each instance of the task/step will receive the same value of the item (even though the UI shows the name of the instances with the different item values).
If the step/task is made to reference a named template, the problem goes away.
In the example workflow, note how step bar get the arg bar, but outputs food both as an output argument as well as what it prints in the logs.
Version
v3.5.4
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the workflow controller
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: