Skip to content

Instantly share code, notes, and snippets.

@michaelsauter
Last active March 9, 2021 14:46
Show Gist options
  • Save michaelsauter/db826ba8ee078dcd468291af931cbba6 to your computer and use it in GitHub Desktop.
Save michaelsauter/db826ba8ee078dcd468291af931cbba6 to your computer and use it in GitHub Desktop.
ods-pipeline-introduction.md
@michaelsauter
Copy link
Author

michaelsauter commented Mar 5, 2021

I re-read the docs (always a good thing to do 😄) and realised that I was wrong on the "no task parallelism when tasks mount the same workspace" assumption. See https://tekton.dev/docs/pipelines/workspaces/#specifying-workspace-order-in-a-pipeline-and-affinity-assistants. I verified this to work as expected in our cluster, meaning tasks still run in parallel by default even if they share the same workspace (because they are assigned to the same node by default). This removes a big limitation outlined above - I've updated the proposal accordingly. Especially build tasks in monorepos will benefit hugely from this.

@felipecruz91
Copy link

With regards to running tasks in parallel sharing files in the same workspace, there's a nice thread about it:

tektoncd/pipeline#2586

@michaelsauter
Copy link
Author

@felipecruz91 thanks for the link. I discovered this as well and the current proposal already takes this into account :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment