Salome HOME
Fix driver when there are no tasks to launch. master
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 29 Mar 2024 14:13:10 +0000 (15:13 +0100)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 29 Mar 2024 14:13:10 +0000 (15:13 +0100)
src/yacsloader/driver_internal.py

index 471856b2f10e05b76169625b11c9082f229b696e..6ca24651c937ec76216fee3273dd714b3f2cce11 100644 (file)
@@ -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])
   #