Skip to main content

raven-sh is a client for Sentry which can be used as a wrapper for cron jobs

Project description

This is a wrapper executing a command and sending its stdout/stderr to the Sentry server.

Useful to work with cron jobs. Unless misconfigured, the wrapper itself is quiet. It launches the program, captures its output, and if the program has been ended with non-zero exit code, builds a message and puts it to the remote server.

Warning

Don’t try to launch scripts producing a lot of data to stdout / stderr with this wrapper, as it stores everything in memory and thus can easily make your system swap.

Example of cron task:

SENTRY_DSN='http://...../'
*/30 * * * *  raven-sh -- bash -c 'echo hello world; exit 1'

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 raven-sh, version 0.5.1
Filename, size File type Python version Upload date Hashes
Filename, size raven_sh-0.5.1-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size raven-sh-0.5.1.tar.gz (3.8 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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page