feat(core): introduce continuous tasks#29750
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
View your CI Pipeline Execution ↗ for commit a137998.
☁️ Nx Cloud last updated this comment at |
66b73fc to
3ce0b72
Compare
3ce0b72 to
9704043
Compare
9704043 to
6273072
Compare
6273072 to
b33ed45
Compare
b33ed45 to
cc9549c
Compare
🐳 We have a release for that!This PR has a release associated with it. You can try it out using this command: npx create-nx-workspace@0.0.0-pr-29750-cc9549c my-workspaceOr just copy this version and use it in your own command: 0.0.0-pr-29750-cc9549c
To request a new release for this pull request, mention someone from the Nx team or the |
cc9549c to
91e243b
Compare
8bed8d6 to
a0967d3
Compare
bd960c0 to
80f6267
Compare
| !shouldPrefix | ||
| ) { | ||
| // todo implement this | ||
| // return await this.runTaskInForkedProcess( |
| } | ||
|
|
||
| // endregion utils | ||
| private async startInfiniteTask( |
There was a problem hiding this comment.
Change this to continuous
| } | ||
| } | ||
|
|
||
| let i = 0; |
|
|
||
| it('should subscribe to output', (done) => { | ||
| const childProcess = terminal.runCommand('echo "hello world"'); | ||
| const childProcess = terminal.runCommand('sleep 1 && echo "hello world"'); |
1d9c69a to
d54fcbe
Compare
d54fcbe to
16818ee
Compare
afa8cee to
b0c8c5b
Compare
| } | ||
|
|
||
| async function createProcessWithPseudoTty( | ||
| pseudoTerminal: PseudoTerminal | null, |
| } finally { | ||
| if (this.isAlive == true) { | ||
| this.isAlive = false; | ||
| } |
There was a problem hiding this comment.
This can probably be simplified to just this since we check if its alive above:
| } finally { | |
| if (this.isAlive == true) { | |
| this.isAlive = false; | |
| } | |
| } finally { | |
| this.isAlive = false; |
b0c8c5b to
a137998
Compare
<!-- 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. --> ## Summary An RFC about this feature is happening here: #29025. This has the most information about this feature. ## Current Behavior <!-- This is the behavior we have today --> Nx currently does not explicitly handle tasks which run continuously until they are terminated. ## Expected Behavior <!-- 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. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
<!-- 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. --> ## Summary An RFC about this feature is happening here: #29025. This has the most information about this feature. ## Current Behavior <!-- This is the behavior we have today --> Nx currently does not explicitly handle tasks which run continuously until they are terminated. ## Expected Behavior <!-- 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. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Summary
An RFC about this feature is happening here: #29025. This has the most information about this feature.
Current Behavior
Nx currently does not explicitly handle tasks which run continuously until they are terminated.
Expected Behavior
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.
Related Issue(s)
Fixes #