Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion easybuild/tools/systemtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,14 +1240,19 @@ def get_default_parallelism():
det_parallelism._default_parallelism = par
return par

defaultpar = get_default_parallelism()
if par is None:
par = get_default_parallelism()
par = defaultpar
else:
try:
par = int(par)
except ValueError as err:
raise EasyBuildError("Specified level of parallelism '%s' is not an integer value: %s", par, err)

if defaultpar < par:
Copy link
Member

Choose a reason for hiding this comment

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

--parallel was always meant to provide full control, I think we need to introduce a --max-parallel options instead

Copy link
Member

Choose a reason for hiding this comment

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

_log.info("Reducing parallelism from %s to %s", par, defaultpar)
par = defaultpar

if maxpar is not None and maxpar < par:
if maxpar is False:
maxpar = 1
Expand Down
Loading