"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "ea9685a93887989d67fb3b6f48ca338b3d2e5551"
Commit b94ddfc7 authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

experiments/slurm runtime: add check whether job id could be retrieved

parent 13f09ab9
......@@ -113,6 +113,8 @@ class SlurmRuntime(Runtime):
raise RuntimeError('running sbatch failed')
m = jid_re.search(output)
if m is None:
raise RuntimeError('cannot retrieve id of submitted job')
run.job_id = int(m.group(1))
async def start(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment