-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Better tasks order logic in Pipeline - label selectors in runAfter #2592
Comments
This can potentially be solved also by |
@jlpettersson, Awsome, but your proposal is more for running the same group tasks in one pod than for control the ordering I guess. I think we should track these two issues separately. Else if the above ticket is really focusing on |
You might be interested in #2446 /kind feature |
@dibyom oh, that’s nice, finally is a good idea for running any tasks even pipeline failed. Cleanup jobs are better to do at finally. Though my use cases does not stand for finally, just because they are not the end. Means I want to run few other tasks after this tasks. Implementing finally would be easier than this. Because it just have to check for status of pipeline. Grouping looks more complex but useful feature for many situations |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
As of today, Tekton has two methods to control the sequence of tasks in Pipeline. Which are basically by using
runAfter
andfrom
keywords. In a complex CI CD pipeline, sometimes its difficult to maintainrunAfter
or evenfrom
.Eg: In my Pipeline(Which is created dynamically, and programmatically) has 100s of tasks. Which performs actions in parallel. In the current scenario, in order to run final tasks, I have to put all the list of the above tasks to runAfter for all the remaining tasks.
I was thinking, a way to label the
tasksruns
, and run a task after all thetasksruns
with a label specified have completed.Eg Pipeline
In this example
build-app
must run aftertest-app
andtest-app
since both have same labelrungroup: loading
The text was updated successfully, but these errors were encountered: