Salome HOME
WIP: workload manager final version of the API
[modules/yacs.git] / src / engine / Executor.cxx
index 5f18fff1d75d3e5d3c9e9dde1eba9ab68957ba64..8af044080cf03e8ceeea95530cb5177606155fcb 100644 (file)
@@ -1881,3 +1881,15 @@ void Executor::newRun(Scheduler *graph,int debug, bool fromScratch)
   }
   DEBTRACE("End of RunB thread");  
 }
+
+void Executor::RunW(Scheduler *graph,int debug, bool fromScratch)
+{
+  std::string str_value = graph->getProperty("executor");
+  if(str_value == "WorkloadManager"
+     || str_value == "WORKLOADMANAGER"
+     || str_value == "workloadmanager"
+     || str_value == "WorkLoadManager")
+    newRun(graph, debug, fromScratch);
+  else
+    RunB(graph, debug, fromScratch);
+}