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

Allow task to be cancelled if a parallel task fails #7880

Open
clearnicki opened this issue Apr 12, 2024 · 5 comments
Open

Allow task to be cancelled if a parallel task fails #7880

clearnicki opened this issue Apr 12, 2024 · 5 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@clearnicki
Copy link

Feature request

For instances in pipelines where there are 2 parallel tasks executing and if either of them fails, I'm requesting for an option to be able to have the other task be cancelled and continue directly to the Finally section. If something like this could be included in the pipeline definition and not require manual patching.

An example would be the "fail-fast" options from github workflow.

Use case

A use case would be if you have 2 parallel tasks that are checking the status of a merge request to promote code, if one of those tasks fails then the other in-progress one will be cancelled and proceed directly to the finally section

@clearnicki clearnicki added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 12, 2024
@chengjoey
Copy link
Member

+1

looks good to have this feature, currently can stop parallel tasks manually, but it would be better to add a feature switch to stop them automatically.
@tektoncd/core-maintainers what do you think? If possible, I would like to submit a Tep and implement this.

@vdemeester
Copy link
Member

I think it makes sense indeed. Having a "fail-fast" like behavior would be nice indeed.

@chengjoey
Copy link
Member

/assign

chengjoey added a commit to chengjoey/pipeline that referenced this issue May 26, 2024
allow task to be cancelled if a parallel task fails tektoncd#7880

Signed-off-by: chengjoey <[email protected]>
chengjoey added a commit to chengjoey/pipeline that referenced this issue May 27, 2024
allow task to be cancelled if a parallel task fails tektoncd#7880

Signed-off-by: chengjoey <[email protected]>
chengjoey added a commit to chengjoey/pipeline that referenced this issue May 27, 2024
allow task to be cancelled if a parallel task fails tektoncd#7880

Signed-off-by: chengjoey <[email protected]>
chengjoey added a commit to chengjoey/pipeline that referenced this issue May 27, 2024
allow task to be cancelled if a parallel task fails tektoncd#7880

Signed-off-by: chengjoey <[email protected]>
chengjoey added a commit to chengjoey/pipeline that referenced this issue May 27, 2024
allow task to be cancelled if a parallel task fails tektoncd#7880

Signed-off-by: chengjoey <[email protected]>
chengjoey added a commit to chengjoey/pipeline that referenced this issue May 27, 2024
allow task to be cancelled if a parallel task fails tektoncd#7880

Signed-off-by: chengjoey <[email protected]>
chengjoey added a commit to chengjoey/pipeline that referenced this issue May 27, 2024
allow task to be cancelled if a parallel task fails tektoncd#7880

Signed-off-by: chengjoey <[email protected]>
@devops-team-92
Copy link

devops-team-92 commented Oct 30, 2024

@chengjoey Any tentative date when we will have this feature .. Its really must required feature in gitops agile ways of development . Please let us know the dates .

CC @vdemeester

@vdemeester
Copy link
Member

@devops-team-92 there is not really "dates" for OSS project. The linked pull-request #7987 needs some reviews. Once it gets merge, it will be in the monthly release that follows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

4 participants