Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python client to the GrimReaper process killer.

Project description

https://img.shields.io/pypi/dm/GrimReapersPie.svg https://img.shields.io/pypi/v/GrimReapersPie.svg https://img.shields.io/github/tag/matee911/GrimReapersPie.svg https://img.shields.io/github/release/matee911/GrimReapersPie.svg https://img.shields.io/github/commits-since/matee911/GrimReapersPie/0.1.0a1.svg https://img.shields.io/pypi/pyversions/GrimReapersPie.svg https://img.shields.io/pypi/wheel/GrimReapersPie.svg https://img.shields.io/pypi/status/GrimReapersPie.svg https://img.shields.io/pypi/l/GrimReapersPie.svg Code Climate https://scrutinizer-ci.com/g/matee911/GrimReapersPie/badges/quality-score.png?b=master https://img.shields.io/github/issues/matee911/GrimReapersPie.svg https://img.shields.io/twitter/url/https/github.com/matee911/GrimReapersPie.svg?style=social https://img.shields.io/twitter/url/https/pypi.python.org/pypi/GrimReapersPie.svg?style=social

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for GrimReapersPie, version 0.1
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

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page