From 202ff6c093a9a6066e82a6020fea6a4b8e4a84cb Mon Sep 17 00:00:00 2001 From: "felix.tomski" <tomski@itc.rwth-aachen.de> Date: Thu, 15 Jun 2023 15:12:39 +0200 Subject: [PATCH] Load custom shell rc file in internal slurm jobs Otherwise gitlab-runner may not be available to upload artifacts. --- core/utility/executor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/utility/executor.py b/core/utility/executor.py index 50c8294..370ec84 100644 --- a/core/utility/executor.py +++ b/core/utility/executor.py @@ -163,6 +163,7 @@ class Slurm_Executor(Executor, ABC): allocator=self.get_srun_cmd(), params=f'--jobid={self.simple_job_id} {self.get_default_params()} {params}', wrapper_add=wrapper_add, + pre_exec_scripts=[self.job.shell_config], target_script=script, install_env=install_env, text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout logging.debug(management_out) -- GitLab