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

Class JobAdapter

job.queue.BaseJob --+
                    |
                   JobAdapter

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

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

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

Class Variables [hide private]

Inherited from job.queue.BaseJob: init_count, state

Method Details [hide private]

__init__(self, job)
(Constructor)

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

doCommand(self)

 

Execute the command associated with this job.

Overrides: job.queue.BaseJob.doCommand

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

finalize(self)

 

Clean up after a job successfully runs.

Overrides: job.queue.BaseJob.finalize