"docs/source/en/api/pipelines/model_editing.md" did not exist on "bcc570b910ec9e73ec146b17b0b60b5e6f3e4f38"
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): ...@@ -113,6 +113,8 @@ class SlurmRuntime(Runtime):
raise RuntimeError('running sbatch failed') raise RuntimeError('running sbatch failed')
m = jid_re.search(output) m = jid_re.search(output)
if m is None:
raise RuntimeError('cannot retrieve id of submitted job')
run.job_id = int(m.group(1)) run.job_id = int(m.group(1))
async def start(self): 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