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

Add turbo concurrency equal to number of CPUs #11

Open
moltar opened this issue Feb 16, 2022 · 2 comments
Open

Add turbo concurrency equal to number of CPUs #11

moltar opened this issue Feb 16, 2022 · 2 comments

Comments

@moltar
Copy link
Owner

moltar commented Feb 16, 2022

https://nodejs.org/api/os.html#os_os_cpus

Can get the value this way:

node -r os -e 'process.stdout.write(os.cpus().length.toString())'

Then include into a step before, and then reference the output in the next step.

@moltar
Copy link
Owner Author

moltar commented Feb 16, 2022

Also, asked in the Turbo discord if this should be a built-in feature:

https://discord.com/channels/818588653005176832/818588653147389955/943378730208854086

@moltar
Copy link
Owner Author

moltar commented Feb 20, 2022

vercel/turborepo#761

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant