A class that holds the information necessary to run a task on a
compute resource.
It holds a templated shell command along with info about required
input, output created, and information about how to generate a jobname.
It doesn't hold any information specific to a job run - e.g. hostname,
input filenames, output filenames.
This class has no methods that modify instance state. Use a builder
class (TaskSpecificationBuilder or JobSpecificationBuilder) to set up a
TaskSpecification.
|
|
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
validate(self)
Make sure that the variables used in the command-line template are
defined with input or output specifications. |
|
|
|
|
|
|
|
getCommandTemplate(self)
Return the command-line as a list of arguments with keys in the form
of <KEY> that will be replaced with runtime parameters. |
|
|
|
|
needsExplicitJobname(self)
Return True if a jobname must be specified as part of the runtime
parameters. |
|
|
|
|
getInputKeys(self)
Return a list of keys that define inputs. |
|
|
|
|
getJobnameSource(self)
Return the input key that should be used to derive the jobname. |
|
|
|
|
|
|
|
getLicenses(self)
Returns licenses as a list of tuples of ( license_name, num_tokens) |
|
|
|
|
driverReservesCores(self)
If True, the driver will allocate N slots matching -HOST hostname: N
processes. |
|
|
|
|
jobUsesTPP(self)
If True, this job will allocate N slots on one node matching -TPP N. |
|
|
|
|
getOutputKeys(self)
Return a list of keys that define outputs. |
|
|
|
|
useSchrodingerRun(self)
Return whether to run the command under $SCHRODINGER/run. |
|
|
|
|
useSchrodingerProduct(self)
Return whether to run the command under $SCHRODINGER/run. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|