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

HOTFIX: Catch Slurm errors and remove

parent 26fcf934
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,8 @@ class SingleSlurmJobAcrossStages(Slurm, ABC):
try:
self.slurm_job_id = re.search(r'salloc: job (\d+)', salloc_out).group(1)
except:
logging.error(f'run_properties salloc_out={salloc_out}')
print(salloc_out, file=sys.stderr)
exit(1)
with open(self.slurm_jobid_file, 'w+') as slurm_jobid_fp:
slurm_jobid_fp.write(self.slurm_job_id + '\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment