-
I would like retryStrategy to only execute if a specific step returned an exitCode of 137. However, when I try to do it the way below, I get Am I not accessing the exit code correctly? - name: oom-example
steps:
- - name: compute-memory-step
template: compute-memory
arguments:
parameters:
- name: current-retry-value
value: "{{retries}}"
- - name: run-container-step
template: run-container
arguments:
parameters:
- name: memory
value: "{{steps.compute-memory-step.outputs.result}}"
retryStrategy:
limit: "3"
expression: "steps['run-container-step'].exitCode == '137'" |
Beta Was this translation helpful? Give feedback.
Answered by
jswxstw
Feb 17, 2025
Replies: 1 comment
-
When using the However, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kevinc3n
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the
expression
field withinretryStrategy
, only these variables are available.However,
lastRetry.exitCode
in your case is always -1 because templateoom-example
is type ofSteps
does not have exit code, which there is a related issue: #13297 for it.