Python client to the GrimReaper process killer.
The GrimReapersPie is an Apache2 Licensed library, written in python, to (un)register long-running processes with the GrimReaper. Processes running longer than the time given during the registration, will be killed by the GrimReaper daemon.
Install and run the GrimReaper.
To install this library, simply:
$ pip install -U GrimReapersPie
>>> from grimreaper import GrimReaper >>> grim_reaper = GrimReaper(process_timeout=5) # set the global (default is 30s) timeout for 5 seconds >>> grim_reaper.register(timeout=10) # or override the global timeout here # long-running job >>> grim_reaper.unregister() # please, don't kill me, I had done my job before time has passed.
Please see CONTRIBUTING.rst
- Fixed PyPI package
- Birth! Briefly tested under Python 2.7 and Python 3.4
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size GrimReapersPie-0.1.tar.gz (7.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|