Procházet zdrojové kódy

Expose hidden method in scenario to get existing tasks without raising error if a task does not exist anymore.

jean-robin medori před 1 týdnem
rodič
revize
603b11e019
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      taipy/core/scenario/scenario.py

+ 3 - 0
taipy/core/scenario/scenario.py

@@ -745,6 +745,9 @@ class Scenario(_Entity, Submittable, _Labeled):
             self._additional_data_nodes.discard(dn_id)  # type: ignore[arg-type]
         return additional_data_nodes
 
+    def _get_existing_tasks(self) -> Dict[str, Task]:
+        return self.__get_tasks(raise_not_existing=False)
+
     def __get_tasks(self, raise_not_existing: bool = True) -> Dict[str, Task]:
         from ..task._task_manager_factory import _TaskManagerFactory