1

Tried Argo Workflow template with both timeout and activeDeadlineSeconds and this template also has retryStrategy. In both case, timeout are applied for each run but I want entire template should timeout within mentioned time. How to achieve this? Please comment in case the question is not clear.

kind: WorkflowTemplate
.
.
spec:
  templates:
    -name: taskA
     activeDeadlineSeconds :30
     retryStrategy:
       limit: 2
     .....

In this, all retry in case of timeout runs for 30sec each. But I wanted the entire workflowTemplate to timeout after 30 sec. Not 90sec. Is there any reference for this?

user18354658
  • 65
  • 1
  • 5

2 Answers2

1

activeDeadlineSeconds can also be used in the Workflow/WorkflowTemplate level, see an example here.

  • Links break, please [edit] the answer to include the relevant sample section from the documentation (in addition to having the link you already listed.) – George 2.0 Hope Jul 09 '22 at 02:47
  • see also https://argoproj.github.io/argo-workflows/walk-through/timeouts/ – JR. Jul 27 '22 at 18:56
0

Thanks got it. activeDeadlineSeconds can be used directly under spec: outside templates: level to achieve this.

user18354658
  • 65
  • 1
  • 5
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 05 '22 at 04:55