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'm trying to implement some conditional logic into my workflow template that will increase the memory request for the pods based on past failures of a task.
The simple case where I increase the memory on every failure is straightforward enough
What I am aiming for is a more refined condition, where the value only gets incremented if retries exit with 137. Scouring the docs it does not seem to be possible to access the exit codes of all past retries of a task, and lastRetry.exitCode is not enough info to determine which value to pick from the array.
Is there a way to access all previous exit codes of task retries, so I could construct an index to pick the correct value with?
Failing to do so, is there a way to build an accumulator between retries, that can be referenced in the podSpecPatch section of the template? From what I can tell, self-referencing steps seem to only lead to errors in the 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'm trying to implement some conditional logic into my workflow template that will increase the memory request for the pods based on past failures of a task.
The simple case where I increase the memory on every failure is straightforward enough
What I am aiming for is a more refined condition, where the value only gets incremented if retries exit with
137. Scouring the docs it does not seem to be possible to access the exit codes of all past retries of a task, andlastRetry.exitCodeis not enough info to determine which value to pick from the array.Beta Was this translation helpful? Give feedback.
All reactions