-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load TaskDefinitions lazily when building taskGraph (#3562)
Previously, before the `Engine` struct is Prepared for execution, Turbo stored a map of `core.Task` instances to look up Task Definitions. This change removes that behavior and instead looks up TaskDefinitions during task graph construction. This bakes in the assumption that there is more than one place for Tasks to be defined, which is a pre-requisite for composable configs. This implementation hardcodes looking up the `turbo.json` from the root workspace, but in the future, we'll update to start looking for the TaskDefinition in the task's workspace.
- Loading branch information
Showing
3 changed files
with
113 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters