Go to file
2020-12-17 16:46:20 +01:00
cronwrapper ignore cronjobs that hasn't written any status file yet 2020-12-17 16:45:47 +01:00
.gitignore cronwrapper! 2019-05-19 13:56:01 +02:00
LICENSE Add LICENSE 2019-05-01 13:25:51 +02:00
README.md Update README.md 2019-05-02 19:48:04 +02:00
setup.py bump version 2020-12-17 16:46:20 +01:00

cronwrapper

Wrapper for cronjobs to handle failures in a more sane way.

Features

  • Set a time limit for how long cron job are allowed to run
  • Detect failures based on exit codes and output to stderr
  • Restrict how often a cron job should send output mail on failure
  • Ensure that only a single instance of the cron job is running at any time

Usage

Just run cronwrapper --help to check available options and flags. Decide on your preferences, and define your cronjob like this:

* * * * * root /usr/local/bin/cronwrapper -n awesome_job -- /path/to/cronjob --cronjobflag