Package wtf :: Package opi :: Module daemon :: Class Runner
[hide private]
[frames] | no frames]

Class Runner

source code

object --+
         |
        Runner
Known Subclasses:

Runner logic, socket setup and that all
Instance Methods [hide private]
 
__init__(self, daemonopi)
Initialization
source code
 
run(self, prerun=None, parent_cleanup=None, child_cleanup=None, logrotate=None)
Finalize the setup and start the worker
source code
 
_setup_signals(self, baseworker)
Setup signal handlers
source code

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

Class Variables [hide private]
bool detached = False
Is the runner detached?
Instance Variables [hide private]
DaemonOPI _daemonopi
DaemonOPI instance
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, daemonopi)
(Constructor)

source code 
Initialization
Parameters:
Overrides: object.__init__

run(self, prerun=None, parent_cleanup=None, child_cleanup=None, logrotate=None)

source code 
Finalize the setup and start the worker
Parameters:
  • prerun (callable) - Optional initializer/finalizer executed before actually starting up. Called in the worker child (if any).
  • parent_cleanup (callable) - Optional function which is called in the parent after a main worker child fork happens.
  • child_cleanup (callable) - Optional function which is called in the child after a main worker child fork happens.
  • logrotate (callable) - Optional log rotation function

_setup_signals(self, baseworker)

source code 
Setup signal handlers
Parameters: