[core] Option to make chunks optional

This commit is contained in:
Fabien Castan 2020-02-05 11:45:33 +01:00
parent 5e5cc7ba80
commit 7f84097c24
3 changed files with 7 additions and 4 deletions

View file

@ -429,7 +429,7 @@ class CommandLineNode(Node):
if not alreadyInEnv:
cmdPrefix = '{rez} {packageFullName} -- '.format(rez=os.environ.get('REZ_ENV'), packageFullName=chunk.node.packageFullName)
cmdSuffix = ''
if chunk.range:
if chunk.node.isParallelized:
cmdSuffix = ' ' + self.commandLineRange.format(**chunk.range.toDict())
return cmdPrefix + chunk.node.nodeDesc.commandLine.format(**chunk.node._cmdVars) + cmdSuffix