From 761dcbda23d12fe06ccbbf8fb64bdeef9c29fb00 Mon Sep 17 00:00:00 2001 From: oscarwumit Date: Sun, 24 Mar 2019 11:25:53 -0400 Subject: [PATCH] bug fix: Don't lose track of jobs in 'qw' status on SGE Add qw as a keyword when ARC determines job server status This aviods losing track of qw jobs on pharos Previously, if a job has qw status on pharos for extended time (e.g. server is loaded), ARC has chances of losing track of it --- arc/job/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc/job/ssh.py b/arc/job/ssh.py index 0766d776f1..0423062eda 100644 --- a/arc/job/ssh.py +++ b/arc/job/ssh.py @@ -166,7 +166,7 @@ def _check_job_status(self, job_id): else: return 'done' status = status_line.split()[4] - if status.lower() == 'r': + if status.lower() in ['r', 'qw']: return 'running' else: if servers[self.server]['cluster_soft'].lower() == 'oge':