Suspend duration as a parameter #5339
Unanswered
chiranthans23
asked this question in
Q&A
Replies: 1 comment
-
|
The ability to parameterize the suspend:
duration: "{{workflow.parameters.duration}}" # Could be "10s", "2m", "6h", or "10" ("10" defaults to seconds)This enhancement enables dynamic suspension durations based on workflow parameters. Functional example using a workflow parameter: apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: suspend-duration-parameter
namespace: argo
spec:
templates:
- name: suspend-workflow
steps:
- - name: suspend-step
template: suspend-template
- name: suspend-template
suspend: # suspend template
duration: "{{workflow.parameters.duration}}" # Variable duration value based on workflow parameter
entrypoint: suspend-workflow
arguments:
parameters:
- name: duration # Workflow duration parameter
value: 10s # Passing a Duration value as a workflow parameterResources:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am trying to see if there is a way I can suspend a workflow based on parameter rather than directly giving the string, as stated in the doc ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions