workerprocessA tool for creating external worker processes | |
Download |
workerprocess Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- Philip Cristiano
- Publisher web site:
- https://github.com/philipcristiano/
workerprocess Tags
workerprocess Description
A tool for creating external worker processes workerprocess is a Python module that provides a wrapper to create standalone worker processes.Example WorkerWorkers are created by extending the BaseWorker class and implementing a tick method to execute then calling .main() on the class. This will start an infinite loop calling that function.The worker can be stopped gracefully by sending a SIGTERM to the process.>>> import time...... from workerprocess import BaseWorker......... class ExampleWorker(BaseWorker):...... def tick(self):... print 'Tick!'... time.sleep(1)...... ExampleWorker.main() Requirements: · Python
workerprocess Related Software