Skip to content
Snippets Groups Projects
Commit d746249d authored by Felix Tomski's avatar Felix Tomski
Browse files

Fix lmod errors in sbatch mode and remove srun output

parent 86eb1178
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class Executor(ABC):
class Slurm_Executor(Executor, ABC):
srun_path = "srun --export=NONE" # "/usr/local_host/bin/srun"
srun_path = "srun -Q --export=NONE" # "/usr/local_host/bin/srun"
sbatch_path = "sbatch" # "/usr/local_host/bin/sbatch"
salloc_path = "/opt/slurm/current/bin/salloc"
scancel_path = "scancel"
......@@ -109,7 +109,7 @@ class Slurm_Executor(Executor, ABC):
mapping = json.loads(file.read())
self.simple_job_id = mapping[get_cenv("CI_JOB_ID")]
return
except (IOError, KeyError):
except (IOError, KeyError, json.decoder.JSONDecodeError):
self.simple_job_id = None
logging.warning(f'Could not read internal Slurm jobid from mapping file')
......@@ -171,7 +171,7 @@ class Slurm_Executor(Executor, ABC):
def run_batched(self, params="", wrapper_add="", script=""):
sbatch_out = self.execute(helper_script=f"{self.job.scripts_path}/xPipeHelper.sh",
allocator=self.get_sbatch_cmd(),
params=params,
params=f'--export=NONE {params}',
wrapper_add=wrapper_add,
target_script=script,
main_script=True, run_async=True,
......
......@@ -35,7 +35,7 @@ default:
variables:
SLURM_PARAM_TIMELIMIT: "-t 10:00"
SLURM_PARAM_PARTITION: "-p c18m_low"
SLURM_PARAM_PARTITION: "-p devel"
SLURM_PARAM_CPUS: "-c 1"
GIT_STRATEGY: clone
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment