Parallel Execution with Dependency-Based Cache Keys? #9928
-
SummaryHi everyone, I’m exploring ways to speed up CI runs by leveraging Turborepo’s caching while running tasks in parallel. I have a scenario where I’d like to ignore the task dependency graph for execution purposes, but still want the dependency relationships to be taken into account when calculating cache keys. This way, even though tasks run concurrently, they can still benefit from cache invalidation based on the full dependency tree. Current SetupIn my {
"typecheck": {
"dependsOn": ["^typecheck"],
"outputs": []
}
}When I run the following command: npx turbo run eslint --parallel --dryI noticed that the Dependencies and Dependents fields are empty for each task. Essentially, using the What I’m Trying to AchieveMy goal is to:
In short, I’d like a configuration or flag that tells Turborepo:
Discussion Points
Any insights or suggestions would be greatly appreciated. Thanks for your help! Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This section should do it! https://turbo.build/repo/docs/crafting-your-repository/configuring-tasks#dependent-tasks-that-can-be-ran-in-parallel |
Beta Was this translation helpful? Give feedback.
This section should do it! https://turbo.build/repo/docs/crafting-your-repository/configuring-tasks#dependent-tasks-that-can-be-ran-in-parallel