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

Runnable support retry #975

Open
xyloman opened this issue Aug 17, 2022 · 0 comments
Open

Runnable support retry #975

xyloman opened this issue Aug 17, 2022 · 0 comments

Comments

@xyloman
Copy link

xyloman commented Aug 17, 2022

Description of problem

Some resources such as TaskRun do not expose an ability to perform a retry in the case of the task failing.

Proposed solution

If runnable supported the ability to retry X number of times the execution of a runnable which wraps a TaskRun this would allow for tasks that fail due to networking conditions to be retried.

Given a Runnable wrapping a TaskRun
When the TaskRun fails
Then the runnable should be restamped to retry running the task run again

Example

---
apiVersion: carto.run/v1alpha1
kind: ClusterRunTemplate
metadata:
  name: runtemplate
spec:
  outputs:
    image-ref: .status.taskResults[?(@.name=="myresult")].value
  template:
    apiVersion: tekton.dev/v1beta1
    kind: TaskRun
    metadata:
      generateName: $(runnable.metadata.name)$-
      labels: $(runnable.metadata.labels)$
    spec:
      serviceAccountName: $(runnable.spec.inputs.serviceAccount)$
      retries: 5

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant