<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> An RFC about this feature is happening here: #29025. This has the most information about this feature. <!-- This is the behavior we have today --> Nx currently does not explicitly handle tasks which run continuously until they are terminated. <!-- This is the behavior we should expect with the changes in this PR --> This PR adds the initial support for continuous tasks which run continuously until they are terminated. This adds the ability to depend on continuous tasks. There is some more work to be done but this will be enough as an MVP. <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
43 lines
924 B
Markdown
43 lines
924 B
Markdown
# Interface: TaskGraph
|
|
|
|
Graph of Tasks to be executed
|
|
|
|
## Table of contents
|
|
|
|
### Properties
|
|
|
|
- [continuousDependencies](../../devkit/documents/TaskGraph#continuousdependencies): Record<string, string[]>
|
|
- [dependencies](../../devkit/documents/TaskGraph#dependencies): Record<string, string[]>
|
|
- [roots](../../devkit/documents/TaskGraph#roots): string[]
|
|
- [tasks](../../devkit/documents/TaskGraph#tasks): Record<string, Task>
|
|
|
|
## Properties
|
|
|
|
### continuousDependencies
|
|
|
|
• **continuousDependencies**: `Record`\<`string`, `string`[]\>
|
|
|
|
---
|
|
|
|
### dependencies
|
|
|
|
• **dependencies**: `Record`\<`string`, `string`[]\>
|
|
|
|
Map of Task IDs to IDs of tasks which the task depends on
|
|
|
|
---
|
|
|
|
### roots
|
|
|
|
• **roots**: `string`[]
|
|
|
|
IDs of Tasks which do not have any dependencies and are thus ready to execute immediately
|
|
|
|
---
|
|
|
|
### tasks
|
|
|
|
• **tasks**: `Record`\<`string`, [`Task`](../../devkit/documents/Task)\>
|
|
|
|
Map of Task IDs to Tasks
|