Package schrodinger :: Package test :: Package scival :: Module suite :: Class CommandTemplateSuiteJob
[hide private]
[frames] | no frames]

Class CommandTemplateSuiteJob

         object --+                
                  |                
  job.queue.BaseJob --+            
                      |            
job.queue.JobControlJob --+        
                          |        
             object --+   |        
                      |   |        
             _SciValJob --+        
                          |        
               BaseSuiteJob --+    
                              |    
                       SuiteJob --+
                                  |
                                 CommandTemplateSuiteJob

Allow a string formatted command_template class attribute or property. This usually makes suites much easier to read. Requires a class attribute or property 'command_template'

Instance Methods [hide private]
 
__init__(self, test, run_env, jobname=None, **kwargs)
Job constructor.
 
getCommand(self)
Get the correct command based on the job template.

Inherited from SuiteJob: __str__, execFilepath, finalize, getFiles, getJobParams, getResults, kill, postCommand, run, setServerRunState, setup, suiteName, testName, update, upload

Inherited from job.queue.JobControlJob: __getstate__, __setstate__, cancelSubmitted, doCommand, getJob, getStatusStrings, maxFailuresReached, retryFailure, runsLocally, usesJobServer

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

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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from SuiteJob: client, prerequisite_job_classes

Inherited from job.queue.BaseJob: init_count

Properties [hide private]

Inherited from SuiteJob: host_id, host_name

Inherited from job.queue.BaseJob: state

Inherited from object: __class__

Method Details [hide private]

__init__(self, test, run_env, jobname=None, **kwargs)
(Constructor)

 

Job constructor.

Parameters:
  • client - A validation.aggregate.AggregateClient instance.
  • test - A dictionary describing the test as downloaded from the server. Guaranteed to have a 'name' key.
  • jobname - A name for the job.
  • command - The command that will launch the job.
Overrides: object.__init__
(inherited documentation)

getCommand(self)

 

Get the correct command based on the job template. Expands the test and adds self.jobname

Overrides: job.queue.JobControlJob.getCommand