aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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