diff --git a/cluster_status.py b/cluster_status.py index 51bbd53622f9a083aa1b38e78a63179b0af0489f..72a62b387b2d59f319f0c071edfabc6b2306e5e7 100755 --- a/cluster_status.py +++ b/cluster_status.py @@ -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")