tektoncd / pipeline

A cloud-native Pipeline resource.
https://tekton.dev
Apache License 2.0
8.37k stars 1.76k forks source link

Maximum parallel tasks sharing a workspace #7971

Open zppinho opened 1 month ago

zppinho commented 1 month ago

In tekton v0.50.5, i am running a pipeline that has three tasks that utilize the same workspace and that can run in parallel, however, the observed behaviour is that at most only two of these three tasks run at the same time and the third runs after these previous tasks complete. All of the tasks have the same runAfter:, and there should be no resource limitations.

Is there a maximum number of tasks that run at the same time and mount the same workspace?

BhawaniSingh commented 1 month ago

I'm also facing the similar issue, for me this is happening because only 2 task are assigned to the same kubernetes node, rest taskrun pods are assigned to other kubernetes pods.

Edit: I'm using tekton version v0.56.3

jerop commented 1 month ago

There's no limit on the number of parallel tasks, but you need affinity assistant to execute parallel tasks that share a workspace - https://tekton.dev/docs/pipelines/affinityassistants/