From 8b1bfb3b305dc26b29faadca00193e3db4c10f3a Mon Sep 17 00:00:00 2001 From: Young Joon Lee Date: Sat, 29 Jul 2023 10:20:40 +0900 Subject: [PATCH] fix(hyfi/main): change "tasks" to "config_group" in condition check --- src/hyfi/main/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hyfi/main/main.py b/src/hyfi/main/main.py index c268a6fe..fd758bf8 100644 --- a/src/hyfi/main/main.py +++ b/src/hyfi/main/main.py @@ -542,7 +542,8 @@ def run_config( "The HyFI config is not instantiatable, running HyFI task with the config" ) # Run the HyFI task - if "tasks" in config or cmd_name == "run_workflow": + config_group = config.get("config_group", "") + if config_group == "workflow" or cmd_name == "run_workflow": workflow = HyFI.workflow(**config) HyFI.run_workflow(workflow) elif "task" in config and (cmd_name is None or cmd_name == "run_task"):