Skip to content
Discussion options

You must be logged in to vote

@katylava
I find out a workaround for my workflow.
whenever someone approves the workflow, it provides input approve as YES. suspend step wait for 1 hour if no one provides the approval it process with a default value as NO
The next step purely depends on the output of this step. if it is NO then abort job will run, it will fail the workflow with an error message.
If someone provides YES then will go as expected.

    - name: approval
      suspend:
        duration: "1h"
      inputs:
        parameters:
          - name: approve
            description: "The options to show on the dropdown in Argo UI."
            default: "NO"
            enum:
              - "YES"
              - "NO"

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@katylava
Comment options

Answer selected by agilgur5
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/suspend-resume Suspending and resuming workflows
4 participants