From 96ab5041cb9582fd44428e04c7c5c05a3c503a61 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Fri, 29 Mar 2024 15:13:10 +0100 Subject: [PATCH] Fix driver when there are no tasks to launch. --- src/yacsloader/driver_internal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yacsloader/driver_internal.py b/src/yacsloader/driver_internal.py index 471856b2f..6ca24651c 100644 --- 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]) # -- 2.30.2