Cron monitoring tool.
Project description
# Crony
Cron monitoring tool. It works well with cronitor.io & sentry.io Cronitor.io can help you know if the tool doesn’t start or end correctly. Or if it takes an abnormally long time to complete. Sentry.io helps debugging by giving stack traces when your cron code fails.
## Getting Started
This tool currently requires Python 3.6 or higher. There’s a current issue to add Python 2 support.
If you’re on a Mac, it’s as simple as running
` brew install python3 `
Or using whatever package manager for your system.
### Prerequisites
To get the benefit of [Cronitor.io](https://cronitor.io) integration. You’ll need to sign up for an account with them and setup a new “Cron job” monitor. When you setup your monitor, you’ll receive a link like
` https://cronitor.link/6gVGE7/{ENDPOINT} `
The alphanumeric string after “https://cronitor.link/” and before the endpoint is your Cronitor unique identifier. You’ll need to pass that to crony with –cronitor to integrate the cron monitoring with cronitor.io.
To integration crony with Sentry.io for debugging & error tracking, you’ll need to create an account at [Sentry.io](https://sentry.io). After creating an account, you can setup a project for your crons. Sentry will give you a DSN url that you’ll need to integration with crony. You can then specify your DSN when calling crony with --dsn, or with a SENTRY_DSN environment variable, or by placing it inside a config file.
### Installing
Simply install with
` pip install crony `
To get a list of options use
` crony --help `
Crony can wrap any shell command, try this
` crony echo "hello world" `
View the [wiki](https://github.com/youversion/crony/wiki) for environment variables and configuration file options.
## Running the tests
There’s a current issue to write unit tests.
### And coding style tests
New commits must pass pep8 & flake8 standards. The only allowed exception is [pep8 line length](https://www.python.org/dev/peps/pep-0008/#maximum-line-length) is allowed to be up to 99 characters.
` pep8 . --max-line-length=99 `
Should yield 0 errors.
` flake8 . `
Should also yield 0 errors.
## Built With
[Raven](https://github.com/getsentry/raven-python) - Python client for Sentry
[Requests](http://docs.python-requests.org/en/master/) - Requests: HTTP for Humans
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.
## Versioning
Ideally we’ll use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/youversion/crony/tags).
## Authors
Brad Belyeu - Initial work - [bbelyeu](https://github.com/bbelyeu)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
## Acknowledgments
Thanks to [PurpleBooth](https://gist.github.com/PurpleBooth/109311bb0361f32d87a2) for the README template
Thanks to [Jan-Philip](https://gehrcke.de/2014/02/distributing-a-python-command-line-application/) for the great blog post.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file crony-0.2.1.tar.gz
.
File metadata
- Download URL: crony-0.2.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ad094938056537fe28db2d8139494822a068045dbd44540e7b9149b2e46aa7 |
|
MD5 | 86f96ae50bc3e6afbe69263ac2a8cafd |
|
BLAKE2b-256 | d6392b8b16b7a2d0781161d9246edfe841febe256ed005e4bed67582d918c567 |
File details
Details for the file crony-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: crony-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe518929d4e5e624f5d1f48604c543e3a18c0fcedbd3c4e5484f4ffdc925b2cc |
|
MD5 | 0a8cfbb930873b460feec99d2faa81e2 |
|
BLAKE2b-256 | 6f00351b613cd7541a096cda6b7fc331461f668ff7c3d59e80f9e98aa7070be7 |