Skip to content

Set max step duration dynamically? #13651

Closed Locked Answered by comtihon
comtihon asked this question in Q&A
Discussion options

You must be logged in to vote

I found the solution via podSpecPatch. It's the only option activeDeadlineSeconds can get the dynamic value.
the full example is here:

metadata:
  name: test-deadline
  namespace: argo-events
  labels:
    example: 'true'
spec:
  entrypoint: example

  templates:
    - name: example
      dag:
        tasks:
          - name: generate-value
            template: generate-value
          - name: obtain
            template: obtain
            arguments:
              parameters:
                - name: timeout
                  value: "{{tasks.generate-value.outputs.parameters.value}}"

    - name: generate-value
      script:
        image: alpine:3.7
        command: [sh]
        source: |

Replies: 2 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by comtihon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/templating Templating with `{{...}}` type/support User support issue - likely not a bug
2 participants