-
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
How to run TaskRuns in non-parallel mode #3989
Comments
this should be what you are looking for. 🧑💻 |
@afrittoli @savitaashture could we suggest any best practices/tips for this. |
@nikhil-thomas It seems |
looks like a you will have to write a Task, whose taskrun (generated by trigger event) will check whether a pipelinerun exists and then create the pipelinerun, may be using cc @chmouel |
I have a git repository with many users creating feature branches and pushing into master. Each time a commit is pushed it triggers a new TaskRun and too many of jobs eat the system resources and the system hangs. They also go into a race condition to deploy to the server. In contrast, Gitlab's built-in CI/CD pipeline runs the jobs one by one (not too many of them at once) and the order of execution is the datetime of the created job. I need to achieve this with Tekton. |
It's kind of hard, i think there is a other issu1e somewhere where @imjasonh explains why it is so difficult to do this properly, maybe a CustomTask backed by a Queue service may be a (non trivial and heavy) way to try to achieve this but we don't have a solution built in pipeline for this. |
/kind question |
One way you could address this is to create your https://tekton.dev/docs/pipelines/pipelineruns/#pending-pipelineruns The only gotcha here is that you'd have to use |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale so we can explore supporting pending |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close 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. |
I am using Tekton for my CI/CD jobs. The TaskRuns are made by a gitlab trigger (https://github.com/tektoncd/triggers).
Since compiling the code and building the docker images use a lot of system resources (Specially RAM), I need to run the tasks in a sequential order, not in parallel. Also, it doesn't make sense if a later trigger deploys before a first trigger (which happens quite a lot).
I appreciate if you shine some light on this.
The text was updated successfully, but these errors were encountered: