Skip to content

Commit 968a8b0

Browse files
committed
A small improvement expected
1 parent 2a14a3e commit 968a8b0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Modules/Cluster.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,15 @@ def check_job_finished(self, job_id, verbose = True):
996996
lines = output.split("\n")
997997
if len(lines):
998998
for l in lines:
999-
data = l.strip().split()
999+
l = l.strip()
1000+
if not l:
1001+
if verbose:
1002+
now = datetime.datetime.now()
1003+
sys.stderr.write("{}/{}/{} - {}:{}:{} | job {}: No response from the server \n".format(now.year, now.month, now.day, now.hour, now.minute, now.second, job_id))
1004+
sys.stderr.flush()
1005+
return False
1006+
1007+
data = l.split()
10001008
if len(data) == 0:
10011009
if verbose:
10021010
now = datetime.datetime.now()

0 commit comments

Comments
 (0)