aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2018-11-23 14:41:37 +1100
committerJustin Bedo <cu@cua0.org>2018-11-23 14:50:26 +1100
commit1a75f5789073c0a655fd20ba269e9509d773b1fc (patch)
treed0b5ed67ee63d084654dd2ff0d9a8f735e72a09e /lib
parent09864bb48d3452f52c4ff4f971ac48989726d898 (diff)
qsub: update to check job_state field
Diffstat (limited to 'lib')
-rw-r--r--lib/qsub.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/qsub.nix b/lib/qsub.nix
index 12981f9..d6a34fe 100644
--- a/lib/qsub.nix
+++ b/lib/qsub.nix
@@ -36,7 +36,7 @@
cp -r $TMPDIR ${tmpDir}/$id
set > ${tmpDir}/$id/nix-set
- until qstat ''${id%%.} 2>&1 | grep "Unknown Job" > /dev/null ; do
+ until qstat -f ''${id%%.} 2>&1 | grep "\(Unknown Job\|job_state = C\)" > /dev/null ; do
sleep 60
done
cat ${tmpDir}/$id/qsub-stderr >&2