Commit 8e8a50a0 authored by Pierre Augier's avatar Pierre Augier
Browse files

Better logging in case of error for launch_more_dependant_jobs

parent 4b3e16090d2e
Pipeline #23535 passed with stage
in 2 minutes and 46 seconds
...@@ -399,6 +399,7 @@ scontrol update jobid=<jobid> TimeLimit=1-00:00:00""" ...@@ -399,6 +399,7 @@ scontrol update jobid=<jobid> TimeLimit=1-00:00:00"""
stderr=PIPE, stderr=PIPE,
) )
if process.returncode: if process.returncode:
print(process.stdout, process.stderr, sep="\n")
print("\nexit because previous command failed") print("\nexit because previous command failed")
sys.exit(process.returncode) sys.exit(process.returncode)
job_id = process.stdout.split()[-1].strip() job_id = process.stdout.split()[-1].strip()
......
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