Package schrodinger :: Package application :: Package matsci :: Module jaguarworkflows :: Class RobustSubmissionJob
[hide private]
[frames] | no frames]

Class RobustSubmissionJob

  job.queue.BaseJob --+    
                      |    
job.queue.JobControlJob --+
                          |
                         RobustSubmissionJob

A JobControlJob object that will retry to submit multiple times for fizzled, jobs (if the queue setting is such) but will not attempt to retry a job that died.

Instance Methods [hide private]
bool
retryFailure(self, max_retries=0)
Determine if the job should be retried or not.

Inherited from job.queue.JobControlJob: __getstate__, __init__, __setstate__, __str__, cancelSubmitted, doCommand, getCommand, getJob, getStatusStrings, kill, maxFailuresReached, runsLocally, update

Inherited from job.queue.BaseJob: __lt__, addFinalizer, addGroupPrereq, addPrereq, finalize, genAllJobs, genAllPrereqs, getCommandDir, getJobDJ, getPrereqs, hasStarted, isComplete, postCommand, preCommand, run, setup

Inherited from job.queue.BaseJob (private): _getState, _pruneGraph, _setState

Class Variables [hide private]

Inherited from job.queue.BaseJob: init_count, state

Method Details [hide private]

retryFailure(self, max_retries=0)

 

Determine if the job should be retried or not. This overwrites the parent method to not retry jobs that have a status of "died" as that will indicate that Jaguar failed, which it almost certainly will again.

Parameters:
  • max_retries (int) - The queue's max_retries parameter
Returns: bool
True if the job should be retried, False if not
Overrides: job.queue.JobControlJob.retryFailure