Skip to content
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

fix(node): add workaround for handling sub processes in node:node exe… #10292

Merged
merged 1 commit into from May 17, 2022

Conversation

nartc
Copy link
Contributor

@nartc nartc commented May 14, 2022

…cutor

In Nx 15, we plan to clean up runExecutor and implement proper process handling in runExecutor
upstream. This is a workaround that fix some racing-condition in node:node exexecutor downstream

ISSUES CLOSED: #9305

Current Behavior

runExecutor does not spawn a process of its own which leads to the subProcess variable in nrwl/node:node executor a global variable shared by concurrent runExecutor calls. Logic to killCurrentProcess() in nrwl/node:node prevents it to be ran concurrently.

Expected Behavior

nrwl/node:node should be able to run concurrently.

Related Issue(s)

Fixes #9305

@nx-cloud
Copy link

nx-cloud bot commented May 14, 2022

@vercel
Copy link

vercel bot commented May 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) May 17, 2022 at 6:42PM (UTC)

@nartc nartc requested review from jaysoo and vsavkin May 14, 2022 02:39
…cutor

In Nx 15, we plan to clean up runExecutor and implement proper process handling in runExecutor
upstream. This is a workaround that fix some racing-condition in node:node exexecutor downstream

ISSUES CLOSED: #9305
@jaysoo jaysoo merged commit 7b9b0cd into master May 17, 2022
@FrozenPandaz FrozenPandaz deleted the node-process-workaround branch June 7, 2022 23:30
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runExecutor fails running js:serve concurrently
2 participants