Load config section from YAML file. Args: workflow_file: Path to the YAML workflow file Returns: Dictionary with config values from YAML
(workflow_file: str)
| 91 | |
| 92 | |
| 93 | def load_yaml_config(workflow_file: str) -> dict: |
| 94 | """ |
| 95 | Load config section from YAML file. |
| 96 | |
| 97 | Args: |
| 98 | workflow_file: Path to the YAML workflow file |
| 99 | |
| 100 | Returns: |
| 101 | Dictionary with config values from YAML |
| 102 | """ |
| 103 | parser = YAMLTaskParser() |
| 104 | yaml_data = parser.load_task(workflow_file) |
| 105 | return parser.get_config_with_defaults(yaml_data) |
| 106 | |
| 107 | |
| 108 | def apply_yaml_config_fallback(args, yaml_config: dict): |