diff options
Diffstat (limited to 'utils')
| -rwxr-xr-x | utils/submit-grid-jobs-queue | 8 | 
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) | 
