Package wtf :: Package opi :: Package worker :: Module single :: Class Worker
[hide private]
[frames] | no frames]

Class Worker

source code

object --+
         |
        Worker

Worker "pool" implementation
Instance Methods [hide private]
 
__init__(self, model, sock, prerun, parent_cleanup, child_cleanup)
Initialization
source code
 
run(self)
Pool runner
source code
 
shutdown(self)
Pool shutdown
source code

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

Class Variables [hide private]
  __implements__ = [<class 'wtf.opi.worker.WorkerPoolInterface'>]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, model, sock, prerun, parent_cleanup, child_cleanup)
(Constructor)

source code 
Initialization
Parameters:
  • model (SingleWorker) - The worker model implementation
  • sock (socket.socket) - The main socket
  • prerun (callable) - Prerunner (maybe None)
  • parent_cleanup (callable) - Parent cleanup function (ignored)
  • child_cleanup (callable) - Child cleanup function (ignored)
Overrides: object.__init__

run(self)

source code 
Pool runner

shutdown(self)

source code 
Pool shutdown