Package glue :: Module dagfile :: Class JOB
[hide private]
[frames] | no frames]

Class JOB

source code

object --+
         |
        JOB
Known Subclasses:


Representation of a JOB node in a Condor DAG.  JOB objects have the
following attributes corresponding to information in the DAG file:

.name
        The name of the node in the DAG.

.filename
        The name of the submit file for the JOB.

.directory
        The initial working directory for the JOB.  Set to None to
        omit from DAG (job's working directory will be chosen by
        Condor).

.done
        Boolean indicating if the JOB is done or not.  See
        DAG.load_rescue() for more information.

.noop
        Boolean indicating if the JOB is a no-op or not.

.vars
        A dictionary of the name-->value pairs in the VARS line for
        the JOB.  Leave empty to omit VARS from DAG.

.retry
        The number of retries for the job.  Set to None to omit
        from DAG.

.retry_unless_exit_value
        The value of the UNLESS-EXIT suffix of the RETRY line.
        Set to None to omit from DAG.

.priority
.category
        The PRIORITY value and CATEGORY name for the node in the
        DAG.  Set to None to omit from the DAG.

.parents
.children
        Sets of the parent and child nodes of JOB.  The sets
        contain references to the node objects, not their names.

.prescript
.prescriptargs
.postscript
.postscriptargs
        The names and lists of arguments of the PRE and POST
        scripts.  Set to None to omit from DAG.

.abort_dag_on_abortexitvalue
.abort_dag_on_dagreturnvalue
        The ABORT-DAG-ON abort exit value and DAG return value for
        the JOB.  Set to None to omit from DAG.

For more information about the function of these parameters, refer
to the Condor documentation.

Instance Methods [hide private]
 
__init__(self, name, filename, directory=None, done=False, noop=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
write(self, f, progress=None)
Write the lines describing this node to the file-like object f.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  keyword = 'JOB'
Properties [hide private]
  state
Get the state of the node.

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, filename, directory=None, done=False, noop=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

write(self, f, progress=None)

source code 

Write the lines describing this node to the file-like object f. The object must provide a .write() method.

If progress is not None, it will be incremented by 1 for every line written.


Property Details [hide private]

state

Get the state of the node. One of 'wait', 'idle', 'run', 'abort', 'stop', 'success', 'fail'.

NOTE: this feature is not implemented at this time.

Get Method:
unreachable.state(self) - Get the state of the node.