diff --git a/docs/knowledge_base/tutorials/scenario_management_overview/src/step_07.py b/docs/knowledge_base/tutorials/scenario_management_overview/src/step_07.py index ba12ae80d..e733da80b 100644 --- a/docs/knowledge_base/tutorials/scenario_management_overview/src/step_07.py +++ b/docs/knowledge_base/tutorials/scenario_management_overview/src/step_07.py @@ -33,8 +33,8 @@ def add(nb): # Configuration of the pipeline and scenario scenario_cfg = Config.configure_scenario(id="my_scenario", - task_configs=[first_task_cfg, - second_task_cfg]) + task_configs=[first_task_cfg, + second_task_cfg]) Config.export("config_07.toml") diff --git a/docs/knowledge_base/tutorials/scenario_management_overview/step_07/config_07.svg b/docs/knowledge_base/tutorials/scenario_management_overview/step_07/config.svg similarity index 100% rename from docs/knowledge_base/tutorials/scenario_management_overview/step_07/config_07.svg rename to docs/knowledge_base/tutorials/scenario_management_overview/step_07/config.svg diff --git a/docs/knowledge_base/tutorials/scenario_management_overview/step_07/step_07.md b/docs/knowledge_base/tutorials/scenario_management_overview/step_07/index.md similarity index 82% rename from docs/knowledge_base/tutorials/scenario_management_overview/step_07/step_07.md rename to docs/knowledge_base/tutorials/scenario_management_overview/step_07/index.md index 19f41422a..e86be6118 100644 --- a/docs/knowledge_base/tutorials/scenario_management_overview/step_07/step_07.md +++ b/docs/knowledge_base/tutorials/scenario_management_overview/step_07/index.md @@ -13,7 +13,7 @@ Changing the execution mode can be useful for running multiple tasks in parallel - _development_ mode: synchronous. The default execution mode is _development_. -In this step, we define a new configuration and functions to showcase the two execution modes. +We define a configuration and functions to showcase the two execution modes. ```python # Normal function used by Taipy @@ -26,7 +26,7 @@ def add(nb): return nb + 10 ``` -![](config_07.svg){ width=700 style="margin:auto;display:block;border: 4px solid rgb(210,210,210);border-radius:7px" } +![](config.svg){ width=700 style="margin:auto;display:block;border: 4px solid rgb(210,210,210);border-radius:7px" } This line of code alters the execution mode. Setting it to _standalone_ makes Taipy Core work asynchronously. In this configuration, a maximum of two tasks can run simultaneously. @@ -92,20 +92,21 @@ output_cfg = Config.configure_data_node("output") # Configuration of tasks first_task_cfg = Config.configure_task("double", - double, - input_cfg, - intermediate_cfg) + double, + input_cfg, + intermediate_cfg) second_task_cfg = Config.configure_task("add", - add, - intermediate_cfg, - output_cfg) + add, + intermediate_cfg, + output_cfg) # Configuration of the pipeline and scenario scenario_cfg = Config.configure_scenario(id="my_scenario", - task_configs=[first_task_cfg, - second_task_cfg]) + task_configs=[first_task_cfg, + second_task_cfg]) +Config.export("config_07.toml") if __name__=="__main__": tp.Core().run()