Skip to content

Add message field to lastRetry for conditional retries #9937

@pjo256

Description

@pjo256

Summary

In https://argoproj.github.io/argo-workflows/retries/#conditional-retries, lastRetry cannot access workflow error/failure messages such as Pod was terminated due to imminent node shutdown. This request is for adding a message on lastRetry containing this error message.

Use Cases

In #9880, we captured preemptions by setting OnTransientError and TRANSIENT_ERROR_PATTERN. However, we would also like to retry OnError. Using conditional retries, we cannot do both since lastRetry does not include a message field - e.g.

    retryStrategy:
        limit: "3"
        expression: "lastRetry.status == 'Error' || lastRetry.message.contains('imminent node shutdown')"

Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions