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

watchAll mode uses all available cores #9116

Closed
brapifra opened this issue Oct 31, 2019 · 1 comment · Fixed by #9117
Closed

watchAll mode uses all available cores #9116

brapifra opened this issue Oct 31, 2019 · 1 comment · Fixed by #9117

Comments

@brapifra
Copy link
Contributor

🐛 Bug Report

According to the docs, jest uses half of the available cores by default when in watch mode to ensure that it is unobtrusive and does not grind the machine to a halt. This is true for the --watch mode, but it is still using all the availables cores - 1 in the --watchAll mode.

To Reproduce

Steps to reproduce the behavior:

  1. Execute jest with --watchAll flag
  2. You can then observe that the number of workers created is equals to NUMBER_OF_CORES - 1.

Expected behavior

By default, it should only use half of the available cores of the machine to ensure that it is unobtrusive.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

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

Successfully merging a pull request may close this issue.

1 participant