From b8876d6f8447558aa6346863e1cb77318881981c Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Wed, 20 Sep 2023 15:42:18 -0700 Subject: [PATCH] Fixed apptainer instance name separator --- hyakvnc/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyakvnc/__main__.py b/hyakvnc/__main__.py index 20b778a..719057b 100644 --- a/hyakvnc/__main__.py +++ b/hyakvnc/__main__.py @@ -134,7 +134,7 @@ def cmd_create(container_path: Union[str, Path], dry_run=False) -> SlurmJob: apptainer_env_vars_string = "" if apptainer_env_vars_quoted else (" ".join(apptainer_env_vars_quoted) + " ") # needs to match rf'(?P{app_config.apptainer_instance_prefix})(?P\d+)-(?P.*)'): - apptainer_instance_name = rf"{app_config.apptainer_instance_prefix}-\$SLURM_JOB_ID-{container_name}" + apptainer_instance_name = rf"{app_config.apptainer_instance_prefix}\$SLURM_JOB_ID-{container_name}" apptainer_cmd = apptainer_env_vars_string + rf"apptainer instance start {container_path} {apptainer_instance_name}" apptainer_cmd_with_rest = rf"{apptainer_cmd} && while true; do sleep 10; done"