From bae8221464f028fc52d9f72c78f6aaf5af8eff68 Mon Sep 17 00:00:00 2001 From: nazarfil Date: Thu, 22 Aug 2024 15:23:19 +0100 Subject: [PATCH] fix(Utils): run pipeline config with right path --- openhexa/sdk/pipelines/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openhexa/sdk/pipelines/utils.py b/openhexa/sdk/pipelines/utils.py index 518ad8e..748207b 100644 --- a/openhexa/sdk/pipelines/utils.py +++ b/openhexa/sdk/pipelines/utils.py @@ -69,8 +69,9 @@ def get_local_workspace_config(path: Path): try: files_path = path / Path(local_workspace_config["files"]["path"]) if not files_path.exists(): - # Let's create the folder if it doesn't exist - files_path.mkdir(parents=True) + # When we start the pipeline container, we mount the worksapce folder, + # if it doesn't exist, it means we don't provide the correct mount path, which is the case in local + files_path = Path("/home/hexa/workspace") env_vars["WORKSPACE_FILES_PATH"] = str(files_path.resolve()) except KeyError: exception_message = (