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

#132 make number of jobs to run in parallel an Option #133

Closed

Conversation

ssproessig
Copy link

limit to 61 on Windows

@ssproessig ssproessig force-pushed the limit_number_of_jobs_via_option branch from 43cc8fc to 3034268 Compare October 3, 2023 12:38
@ssproessig ssproessig force-pushed the limit_number_of_jobs_via_option branch from 3034268 to b4ee063 Compare October 3, 2023 12:41
Comment on lines +71 to +76
if platform.system() == "Windows" and number_of_jobs > _MAX_JOBS_SUPPORTED_DEFAULT:
console.log(
f"Given number of jobs {number_of_jobs} exceeds maximum allowed number "
f"{_MAX_JOBS_SUPPORTED_DEFAULT}. Using {_MAX_JOBS_SUPPORTED_DEFAULT} instead."
)
number_of_jobs = _MAX_JOBS_SUPPORTED_DEFAULT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check the OS? Can't we just get the min between the two?

Copy link
Author

@ssproessig ssproessig Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kludex My understanding is that the behavior is only required on Windows. Hence on Linux I could use more jobs than I have logical cores...

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

Successfully merging this pull request may close these issues.

2 participants