stop execution of ETL if there's a YAML schema issue

This commit is contained in:
Jorge Escobar 2022-05-19 12:29:56 -04:00
parent 38304f846f
commit 400746f7fb

View file

@ -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