aboutsummaryrefslogtreecommitdiff
path: root/utils/submit-grid-jobs-queue
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-11-30 09:18:55 -0600
committertlatorre <tlatorre@uchicago.edu>2020-11-30 09:18:55 -0600
commit0ed5b482605705aeed3d61c30bdbdbf3988b0556 (patch)
tree22a798019bbaa553c410cd152bb820cfc9e9fcb6 /utils/submit-grid-jobs-queue
parentc5a654ef1bea85ee450eb46b6b0b510a0ad13493 (diff)
downloadsddm-0ed5b482605705aeed3d61c30bdbdbf3988b0556.tar.gz
sddm-0ed5b482605705aeed3d61c30bdbdbf3988b0556.tar.bz2
sddm-0ed5b482605705aeed3d61c30bdbdbf3988b0556.zip
update submit-grid-jobs-queue
Diffstat (limited to 'utils/submit-grid-jobs-queue')
-rwxr-xr-xutils/submit-grid-jobs-queue8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/submit-grid-jobs-queue b/utils/submit-grid-jobs-queue
index 773de48..b4e44aa 100755
--- a/utils/submit-grid-jobs-queue
+++ b/utils/submit-grid-jobs-queue
@@ -255,6 +255,10 @@ def get_job_status(row, data=None):
# if it completed successfully. Note: Jobs often don't complete
# successfully because I've noticed that even though I have specified in my
# submit file that the node should have modules, many of them don't!
+ #
+ # Update: With the new queue statement, I have no way of knowing if a job
+ # hasn't been submitted yet, or if it is done. Therefore, we assume here
+ # that if the log file doesn't exist, it hasn't run yet.
log_file = join(new_dir,"%s.log" % prefix)
@@ -267,8 +271,8 @@ def get_job_status(row, data=None):
log.warn("Log file '%s' doesn't contain the string 'return value 0'. Assuming job failed." % log_file)
return 7
except IOError:
- log.warn("Log file '%s' doesn't exist. Assuming job failed." % log_file)
- return 7
+ log.debug("Log file '%s' doesn't exist. Assuming job hasn't started running." % log_file)
+ return 2
hdf5_file = join(new_dir,"%s.hdf5" % prefix)