A class used for constructing multi-task batch jobs.
|
|
|
|
|
|
|
jobSpec(self)
Prints the full job specification dictionary. |
source code
|
|
|
setName(self,
name)
Set the name (a string) of the job. |
source code
|
|
|
|
|
setEmail(self,
email)
Set the notification email for the batch job. |
source code
|
|
|
email(self)
Returns the notification email. |
source code
|
|
|
setTasksMustStartSimultaneously(self,
simul)
Sets the tasksMustStartSimultanously flag. |
source code
|
|
|
tasksMustStartSimultaneously(self)
Returns the value of tasksMustStartSimultaneously. |
source code
|
|
|
setMinimumTaskCount(self,
count)
Sets the min number of tasks that should be started. |
source code
|
|
|
minimumTaskCount(self)
Returns the value of minimumTaskCount. |
source code
|
|
|
setDependsOnJobs(self,
jobArray)
Takes a list of Xgrid job ids that must complete before this job
begins. |
source code
|
|
|
dependsOnJobs(self)
Returns the value of dependsOnJobs. |
source code
|
|
|
addFile(self,
localFilePath,
fileName,
isExecutable=0)
Specifies a local file to copy to the Xgrid agents. |
source code
|
|
|
delFile(self,
fileName)
Deletes the file named fileName from the JobSpecification. |
source code
|
|
|
files(self)
Prints a list of included filenames. |
source code
|
|
|
addTask(self,
cmd,
args=u'
' ,
env={ } ,
inputStream=u'
' ,
dependsOnTasks=[ ] )
Adds a task to the jobSpecification. |
source code
|
|
|
|
|
|
|
|
|
tasks(self)
Return a list of the task names. |
source code
|
|
|
printTasks(self)
Print the task specifications of all tasks. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|