|
|
__init__(self,
command,
command_dir=None,
name=None,
max_retries=None,
launch_env_variables=None,
**kwargs)
Job constructor. |
|
|
|
|
getJob(self)
Return the job record as a schrodinger.job.jobcontrol.Job instance. |
|
|
|
|
runsLocally(self)
Return True if the job runs on the JobDJ control host,
False if not. |
|
|
|
|
_readAgain(self)
Update the jobcontrol.Job object from the database. |
|
|
|
|
__getstate__(self)
Return the object state to be serialized by pickle. |
|
|
|
|
__setstate__(self,
state_dict)
Reset state from a pickle. |
|
|
|
|
update(self)
Checks for changes in job status, and updates the object
appropriately (marks for restart, etc). |
|
|
|
|
_markFinished(self,
action)
Marks the job as finished. |
|
|
|
|
_hasDied(self,
action)
Tells JobDJ to restart the job next-time-around. |
|
|
|
|
doCommand(self,
host,
local)
Launch job on specified host using
jobcontrol.launch_job(). |
|
|
|
|
getCommand(self)
A hook method that can allow for the command to be generated at run
time. |
|
|
|
|
cancelSubmitted(self)
If the job is still in the 'submitted' state, cancel it, purge the
jobrecord and set the job handle to None. |
|
|
|
|
retryFailure(self,
max_retries=0)
This method will be called when the job has failed, and JobDJ needs
to know whether the job should be retried or not. |
|
|
|
|
kill(self)
Send kill request to jobcontrol managed job |
|
|
|
|
maxFailuresReached(self,
msg)
Print an error summary, including the last 20 lines of the first log
file from the LogFiles list in the job record. |
|
|
|
|
|
|
|
|
|
Inherited from BaseJob:
__lt__,
addFinalizer,
addGroupPrereq,
addPrereq,
finalize,
genAllJobs,
genAllPrereqs,
getCommandDir,
getJobDJ,
getPrereqs,
hasStarted,
isComplete,
postCommand,
preCommand,
run,
setup
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|