Package peppy :: Package lib :: Module processmanager :: Class Job
[frames] | no frames]

Class Job

      object --+    
               |    
debug.debugmixin --+
                   |
                  Job

Instance Methods
 
__init__(self, cmd, working_dir, job_output)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
run(self, text='')
 
kill(self)
 
readStream(self, stream, callback)
 
readStreams(self)
 
OnCleanup(self, evt)
Cleanup handler on process exit.

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

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables
  debuglevel = 0
Properties

Inherited from object: __class__

Method Details

__init__(self, cmd, working_dir, job_output)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

OnCleanup(self, evt)

 

Cleanup handler on process exit.

This must be called as part of the event loop, otherwise the process doesn't exist and it causes crashes in wx when trying to read the last bit of data from the streams.