Package schrodinger :: Package application :: Package desmond :: Module cmj :: Class JobAdapter
[hide private]
[frames] | no frames]

Class JobAdapter

       object --+    
                |    
job.queue.BaseJob --+
                    |
                   JobAdapter

This adapts the `Job' class to the `que.BaseJob' class.

Instance Methods [hide private]
 
__init__(self, job)
x.__init__(...) initializes x; see help(type(x)) for signature
 
doCommand(self)
Execute the command associated with this job.
 
finalize(self)
Clean up after a job successfully runs.
 
update(self)
Update the current job status, stored in the state property.

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

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

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

Class Variables [hide private]

Inherited from job.queue.BaseJob: init_count

Properties [hide private]

Inherited from job.queue.BaseJob: state

Inherited from object: __class__

Method Details [hide private]

__init__(self, job)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • command_dir - The directory from which to run the command.
Overrides: object.__init__

doCommand(self)

 

Execute the command associated with this job.

Overrides: job.queue.BaseJob.doCommand

finalize(self)

 

Clean up after a job successfully runs.

Overrides: job.queue.BaseJob.finalize

update(self)

 

Update the current job status, stored in the state property.

When a job is running, this method will be called periodically by JobDJ until the job state property is DONE.

Overrides: job.queue.BaseJob.update