Skip to content
Snippets Groups Projects
Commit 656d128a authored by Sascha Meiers's avatar Sascha Meiers
Browse files

adapt to custom log files

parent 68160932
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ except subprocess.CalledProcessError:
running_status=["PENDING", "CONFIGURING", "COMPLETING", "RUNNING", "SUSPENDED"]
if "COMPLETED" in output:
try:
output = str(subprocess.check_output("grep 'slurmstepd: error: Exceeded step memory limit at some point.' slurm-%s.out" % jobid, shell=True))
output = str(subprocess.check_output("grep 'slurmstepd: error: Exceeded step memory limit at some point.' slurm/*.%s.log" % jobid, shell=True))
except subprocess.CalledProcessError:
# grep fails to find error (or fails to find log file): success
print("success")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment