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 max-jobs option #4064

Merged
merged 1 commit into from Sep 28, 2020
Merged

Fix max-jobs option #4064

merged 1 commit into from Sep 28, 2020

Conversation

balsoft
Copy link
Member

@balsoft balsoft commented Sep 24, 2020

After 0ed946a, max-jobs setting (-j/--max-jobs) stopped working.

The reason was that nrLocalBuilds (which compared to maxBuildJobs to figure out whether the limit is reached or not) is not incremented yet when tryBuild is started; So, the solution is to move the check to tryLocalBuild.

Closes #3763

FIXME: Add a test

After 0ed946a, max-jobs setting (-j/--max-jobs)
stopped working.

The reason was that nrLocalBuilds (which compared to maxBuildJobs to figure
out whether the limit is reached or not) is not incremented yet when tryBuild
is started; So, the solution is to move the check to tryLocalBuild.

Closes NixOS#3763
@mstone
Copy link

mstone commented Sep 27, 2020

I have tested @balsoft's change and it fixes #3763 for me; thank you @balsoft for the quick turnaround on this issue.

@edolstra [or other maintainers], can you take a look at this and merge it if it looks good to you?

Thank you both!

@edolstra edolstra merged commit 649c465 into NixOS:master Sep 28, 2020
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.

max-jobs option is ignored
3 participants