Skip to content
Snippets Groups Projects
Commit fed9df82 authored by Adrian Schmitz's avatar Adrian Schmitz
Browse files

HOTFIX: Catch Slurm errors and remove

parent b277960a
Branches
Tags
No related merge requests found
...@@ -37,7 +37,11 @@ class SingleSlurmJobAcrossStages(Slurm, ABC): ...@@ -37,7 +37,11 @@ class SingleSlurmJobAcrossStages(Slurm, ABC):
self.job.get_parameters().split(" ") self.job.get_parameters().split(" ")
salloc_out = self.executor.allocator(params=' '.join(params)) salloc_out = self.executor.allocator(params=' '.join(params))
logging.debug(f'run_properties salloc_out={salloc_out}') logging.debug(f'run_properties salloc_out={salloc_out}')
try:
self.slurm_job_id = re.search(r'salloc: job (\d+)', salloc_out).group(1) self.slurm_job_id = re.search(r'salloc: job (\d+)', salloc_out).group(1)
except:
logging.error(f'run_properties salloc_out={salloc_out}')
with open(self.slurm_jobid_file, 'w+') as slurm_jobid_fp: with open(self.slurm_jobid_file, 'w+') as slurm_jobid_fp:
slurm_jobid_fp.write(self.slurm_job_id + '\n') slurm_jobid_fp.write(self.slurm_job_id + '\n')
with open(self.cc_slurm_jobid_file, 'w+') as slurm_jobid_fp: with open(self.cc_slurm_jobid_file, 'w+') as slurm_jobid_fp:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment