| Trees | Indices | Help | 
 | 
|---|
|  | 
Provide an API that allows a definition of a job.
A job is composed of two pieces:
  1) A task specification that defines a generic command-line invocation
     and defines what input files are needed and what output files are
     produced.
  2) Runtime parameters that include specific input and output filenames.
To launch a job, you must also provide a set of launch parameters, which
specify things like the job host, number of threads per process, etc.
There are two main ways to construct a JobSpecification from python.
The first way is to use the JobSpecificationBuilder. This requires the
creation of a TaskSpecification via the TaskSpecificationBuilder. In this
case, the command-line provided to the TaskSpecificationBuilder is in a
sense "abstract". It is a list of strings with variables in the form <KEY>
that can be plugged in with specific files at a later time by the
JobSpecificationArgsBuilder.
The second way is to use the JobSpecificationArgsBuilder. This allows the
creation of a JobSpecification from a "concrete" list of command-line
arguments. You must indicate the specific input and output files in the
command-line arguments so they can be transferred and retrieved.
The JobSpecificationBuilder is more work, but is preferred because it gives
more flexibility in JobSpecification use. For example, a function can be
created that allows a JobSpecification to be created from a list of
filenames. This gives the caller the advantage that they don't need
to construct the command-line arguments themselves. Use of a function like
this facilitates easy plugin to AppFramework2 guis.
| 
 | |||
| TaskSpecificationError | |||
| RuntimeParametersError | |||
| SpecificationKeyError An error thrown when a key is missing from a serialized specification. | |||
| TaskSpecificationKeyError | |||
| RuntimeParametersKeyError | |||
| JobSpecificationKeyError | |||
| TaskSpecification A class that holds the information necessary to run a task on a compute resource. | |||
| TaskSpecificationBuilder A class for building up a TaskSpecification from a specific list of command-line arguments. | |||
| _RuntimeParameters A class to hold job-specific input and output filenames. | |||
| _RuntimeParametersBuilder | |||
| JobSpecification This class provides a serializable job definiton and consists of a task specification along with runtime parameters. | |||
| JobSpecificationBuilder A helper class to create a JobSpecification from an existing TaskSpecification. | |||
| JobSpecificationArgsBuilder A helper class to create a JobSpecification from a specific (i.e. | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| mmshare_exec =  | |||
| _KEY_RE = re.compile(r' | |||
| _VAR_RE = re.compile(r'< | |||
| _JOBNAME_KEY =  | |||
| _STDOUT_KEY =  | |||
| _STDERR_KEY =  | |||
| _RESERVED_KEYS =  | |||
| _DEFAULT_STDERR =  | |||
| _DEFAULT_STDOUT =  | |||
| _RESERVED_OUTPUT_FILENAMES =  | |||
| _COMMAND_LINE_ARGUMENTS =  | |||
| _FILENAME_SOURCE =  | |||
| _HOST =  | |||
| _INCORPORATE =  | |||
| _INPUT =  | |||
| _INPUT_FILE =  | |||
| _INPUT_FILENAME =  | |||
| _JOB_USES_TPP =  | |||
| _JOBNAME =  | |||
| _LICENSES =  | |||
| _OUTPUT =  | |||
| _OUTPUT_FILE =  | |||
| _OUTPUT_FILENAME =  | |||
| _DRIVER_RESERVES_CORES =  | |||
| _PRODUCT =  | |||
| _PROGRAM_NAME =  | |||
| _RUNTIME_PARAMETERS =  | |||
| _RUNTIME_PATH =  | |||
| _SCHRODINGER =  | |||
| _SOURCE =  | |||
| _STREAM =  | |||
| _TASK_SPECIFICATION =  | |||
| _TYPE =  | |||
| _USE_RUN =  | |||
| _VALUE =  | |||
| _TASK_INPUT_TYPES =  | |||
| _RUNTIME_INPUT_TYPES =  | |||
| __package__ =  | |||
| 
 | |||
| 
 Make sure the provided key is valid. Raise a RuntimeError if it's not. | 
| 
 | |||
| mmshare_exec
 | 
| Trees | Indices | Help | 
 | 
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 3 07:59:14 2016 | http://epydoc.sourceforge.net |