def wrapper(): repo: Repository = Repository.get_instance() repo.zenml_config.set_pipelines_dir(pipeline_root) for p_config in path_utils.list_dir(pipeline_root): y = yaml_utils.read_yaml(p_config) p: TrainingPipeline = TrainingPipeline.from_config(y) p.run()
def run_pipeline(path_to_config: Text): """ Runs pipeline specified by the given config YAML object. Args: path_to_config: Path to config of the designated pipeline. Has to be matching the YAML file name. """ # config has metadata store, backends and artifact store, # so no need to specify them try: config = read_yaml(path_to_config) p: TrainingPipeline = TrainingPipeline.from_config(config) p.run() except Exception as e: error(e)