-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Continuous Tasks #29750
base: master
Are you sure you want to change the base?
WIP: Continuous Tasks #29750
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
View your CI Pipeline Execution ↗ for commit 1d9c69a.
☁️ 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-workspace Or 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
fd005c5
to
89b7c21
Compare
bd960c0
to
80f6267
Compare
!shouldPrefix | ||
) { | ||
// todo implement this | ||
// return await this.runTaskInForkedProcess( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this
// Disable the pseudo terminal if this is a run-many | ||
const disablePseudoTerminal = !this.initiatingProject; | ||
// Disable the pseudo terminal if this is a run-many or when running a continuous task | ||
const disablePseudoTerminal = !this.initiatingProject || task.continuous; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong 🤔 a task can be continuous be the only thing running.
@@ -725,4 +767,87 @@ export class TaskOrchestrator { | |||
} | |||
|
|||
// endregion utils | |||
private async startInfiniteTask( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to continuous
Object.keys(taskGraph.continuousDependencies).forEach((taskId) => { | ||
taskGraph.continuousDependencies[taskId].forEach((d) => { | ||
reverseTaskDeps[d].push(taskId); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check this
@@ -135,18 +135,37 @@ export class PseudoTerminal { | |||
} | |||
} | |||
|
|||
let i = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
@@ -30,19 +31,37 @@ describe('PseudoTerminal', () => { | |||
}, 1000); | |||
|
|||
it('should subscribe to output', (done) => { | |||
const childProcess = terminal.runCommand('echo "hello world"'); | |||
const childProcess = terminal.runCommand('sleep 1 && echo "hello world"'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
This is still WIP
An RFC about this feature is happening here: #29025
Current Behavior
Expected Behavior
Related Issue(s)
Fixes #