Salome HOME
projects
/
modules
/
yacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb3695
)
Fix driver when there are no tasks to launch.
master
author
Ovidiu Mircescu
<ovidiu.mircescu@edf.fr>
Fri, 29 Mar 2024 14:13:10 +0000
(15:13 +0100)
committer
Ovidiu Mircescu
<ovidiu.mircescu@edf.fr>
Fri, 29 Mar 2024 14:13:10 +0000
(15:13 +0100)
src/yacsloader/driver_internal.py
patch
|
blob
|
history
diff --git
a/src/yacsloader/driver_internal.py
b/src/yacsloader/driver_internal.py
index 471856b2f10e05b76169625b11c9082f229b696e..6ca24651c937ec76216fee3273dd714b3f2cce11 100644
(file)
--- a/
src/yacsloader/driver_internal.py
+++ b/
src/yacsloader/driver_internal.py
@@
-394,6
+394,9
@@
def mainRun( args, xmlFileName):
logging.info( reprAfterArgParsing(args) )
#
proc = loadGraph( xmlFileName )
+ # work around a bug in Executor::Run when there are no tasks to launch.
+ if len(proc.getChildren()) == 0 :
+ return
patchGraph( proc, not args[DoNotSqueezeKeyInARGS], args[InitPortKeyInARGS], args[SaveXMLSchemaKeyInARGS], args[LoadStateKeyInARGS], args[ResetKeyInARGS], args[DisplayKeyInARGS])
executor = prepareExecution( proc, args[StopOnErrorKeyInARGS], args[DumpOnErrorKeyInARGS])
#