Skip to content

matee911/GrimReapersPie

Repository files navigation

GrimReapersPie

Code Climate https://scrutinizer-ci.com/g/matee911/GrimReapersPie/badges/quality-score.png?b=master 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

About

GrimReaper's python client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages