[processGraph] nodes already submitted: print a warning instead of an exception for the moment

This commit is contained in:
Fabien Castan 2017-09-26 11:14:19 +02:00
parent 185fa6e58c
commit fd9a3ffeda

View file

@ -687,13 +687,13 @@ def execute(graph, startNodes=None, force=False):
if nodesInConflict:
nodesStatus = set([node.status.status.name for node in nodesInConflict])
nodes = [node.name for node in nodesInConflict]
raise RuntimeError(
'Graph execution error.\n'
'Some nodes are already submitted with status: {}\n'
nodesName = [node.name for node in nodesInConflict]
#raise RuntimeError(
print(
'WARNING: Some nodes are already submitted with status: {}\n'
'Nodes: {}'.format(
', '.join(nodesStatus),
', '.join(nodes),
', '.join(nodesName),
))
print('execute: ', str([n.name for n in nodes]))