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(dep-graph): set the number of workers with environment variables #8671

Closed
wants to merge 1 commit into from
Closed

fix(dep-graph): set the number of workers with environment variables #8671

wants to merge 1 commit into from

Conversation

danielpayetdev
Copy link
Contributor

@danielpayetdev danielpayetdev commented Jan 24, 2022

With docker, the result of os.cpus() can be wrong (nodejs/node#28762). In my company CI, it's lead to random failure with error 137.

Current Behavior

In my company we have a server with 64 cores to run our build pipline, but when we run the container with the limit of 4 cores, os.cpus().length return 64 instead 4.
It's a known issue in node.js nodejs/node#28762.

Expected Behavior

Run only the right number of workers.

In a docker container, the result of os.cpus() can be wrong (nodejs/node#28762).
@nx-cloud
Copy link

nx-cloud bot commented Jan 24, 2022

Nx Cloud Report

CI is running for commit 6affbee.

📂 Click to track the progress, see the status, the terminal output, and the build insights.


Sent with 💌 from NxCloud.

@danielpayetdev danielpayetdev marked this pull request as draft January 25, 2022 07:32
@danielpayetdev danielpayetdev marked this pull request as ready for review January 25, 2022 07:32
@vsavkin
Copy link
Member

vsavkin commented Jan 28, 2022

Thank you! Merged it here: b86feb1

@vsavkin vsavkin closed this Jan 28, 2022
@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 19, 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.

2 participants