mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
max-substitution-jobs
release note entry
This commit is contained in:
parent
916da456cb
commit
c66a7af0c6
2 changed files with 7 additions and 4 deletions
|
@ -200,10 +200,9 @@ void PathSubstitutionGoal::tryToRun()
|
|||
{
|
||||
trace("trying to run");
|
||||
|
||||
/* Make sure that we are allowed to start a build. Note that even
|
||||
if maxBuildJobs == 0 (no local builds allowed), we still allow
|
||||
a substituter to run. This is because substitutions cannot be
|
||||
distributed to another machine via the build hook. */
|
||||
/* Make sure that we are allowed to start a substitution. Note that even
|
||||
if maxSubstitutionJobs == 0, we still allow a substituter to run. This
|
||||
prevents infinite waiting. */
|
||||
if (worker.getNrSubstitutions() >= std::max(1U, (unsigned int) settings.maxSubstitutionJobs)) {
|
||||
worker.waitForBuildSlot(shared_from_this());
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue