Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Retry on Custom Exit Codes #792

Open
yohamta opened this issue Jan 14, 2025 · 0 comments
Open

Support for Retry on Custom Exit Codes #792

yohamta opened this issue Jan 14, 2025 · 0 comments
Assignees
Labels
enhancement New feature to be implemented
Milestone

Comments

@yohamta
Copy link
Collaborator

yohamta commented Jan 14, 2025

It would be helpful to have a feature that allows retrying a task based on custom exit codes. This feature would specify certain non-zero exit codes where retries should occur, while other non-zero exit codes would cause the task to fail immediately.

Example configuration:

steps:
  - name: retryable task
    command: main.sh
    retryPolicy:
      limit: 3
      intervalSec: 5
      exitCode: [1, 2]  # Retries if the exit code is 1 or 2; otherwise, the task fails.
@yohamta yohamta added the enhancement New feature to be implemented label Jan 14, 2025
@yohamta yohamta added this to the v1.17.0 milestone Jan 14, 2025
@yohamta yohamta self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature to be implemented
Projects
None yet
Development

No branches or pull requests

1 participant