You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a set of workflow templates defined on the cluster and many workflows that execute some of them. How is it possible to check if a particular workflow template step was called? In the main workflow? In a workflow template?
I tried many things like:
echo"nonexistent in workflow parameters1: {{= nonexistent in workflow.parameters }}"echo"nonexistent in workflow parameters2: '{{= nonexistent in workflow.parameters }}'"echo"nonexistent in workflow parameters3: '{{nonexistent in workflow.parameters}}'"echo"var1 in workflow parameters: {{= var1 in workflow.parameters }}"echo"var1 in workflow parameters2: {{var1 in workflow.parameters}}"echo'workflow.outputs: {{= workflow.outputs.parameters?["var2"] ?? 'N/A'}}'echo'env: {{$env.workflow.outputs.parameters["var2"] ?? 'N/A'}}'echo'functional step in env: {{var2 in $env.workflow.outputs.parameters}}'echo'steps: {{steps}}'
but I either get an unable to resolve error, or the template doesn't resolve at all, and it shows it verbatim. This: #7401 didn't work either.
My use case is that I have at least two types of workflows, with some common steps where I want to check which type is being executed, inside a workflow template.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a set of workflow templates defined on the cluster and many workflows that execute some of them. How is it possible to check if a particular workflow template step was called? In the main workflow? In a workflow template?
I tried many things like:
but I either get an unable to resolve error, or the template doesn't resolve at all, and it shows it verbatim. This: #7401 didn't work either.
My use case is that I have at least two types of workflows, with some common steps where I want to check which type is being executed, inside a workflow template.
Beta Was this translation helpful? Give feedback.
All reactions