From 656d128afa80a470b910522a9a57205f06737fe6 Mon Sep 17 00:00:00 2001
From: Sascha Meiers <meiers@embl.de>
Date: Thu, 21 Jun 2018 22:12:58 +0200
Subject: [PATCH] adapt to custom log files

---
 cluster_status.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cluster_status.py b/cluster_status.py
index 51bbd53..72a62b3 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")
-- 
GitLab