From 400746f7fb6fc0ab11b6f9aa1dce82c81d15d7fe Mon Sep 17 00:00:00 2001 From: Jorge Escobar Date: Thu, 19 May 2022 12:29:56 -0400 Subject: [PATCH] stop execution of ETL if there's a YAML schema issue --- data/data-pipeline/data_pipeline/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data/data-pipeline/data_pipeline/utils.py b/data/data-pipeline/data_pipeline/utils.py index a2fc97c7..0ec62616 100644 --- a/data/data-pipeline/data_pipeline/utils.py +++ b/data/data-pipeline/data_pipeline/utils.py @@ -357,6 +357,7 @@ def load_yaml_dict_from_file( except ValidationError as e: logger.error(f"Invalid YAML config file {yaml_file_path}") logger.error(e.normalized_messages()) + sys.exit() return yaml_dict