Python client to the GrimReaper process killer.
Project description
Introduction
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.
Prerequisites
Install and run the GrimReaper.
Installation
To install this library, simply:
$ pip install -U GrimReapersPie
Usage
>>> 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.
Contribution
Please see CONTRIBUTING.rst
Release History
0.1.0a2 (2015-09-14)
Fixed PyPI package
0.1.0a1 (2015-09-12)
Birth! Briefly tested under Python 2.7 and Python 3.4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GrimReapersPie-0.1.tar.gz
(7.5 kB
view details)
File details
Details for the file GrimReapersPie-0.1.tar.gz
.
File metadata
- Download URL: GrimReapersPie-0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4b0f093d31a60c0424140e63f7c9cca2eca669b3413bb5fe8256089cac1c9a |
|
MD5 | fbf7d97ded0cdda0a92e7aa6788a5f5a |
|
BLAKE2b-256 | 8d50fc85399db624890e1fa870a7d95f89d195a051f6c43ab95033fa4fd2a22e |