A simple monitor and wrap function for cron jobs
Project description
Cronpulse
Cronpulse is a simple Python package to monitor and wrap cron jobs with state pings.
Installation
pip install cronpulse
Using Monitor directly
monitor = Monitor("your_job_key")
monitor.ping("run")
# Your job logic here
monitor.ping("complete")
Using wrap function
async def example_job(): # Your job logic here
wrapped_job = wrap("your_job_key", example_job)
await wrapped_job()
# cronpulse-python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cronpulse-0.3.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for cronpulse-0.3.1-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | f4a9587fda8d015df7189d884e54cb0f8f0597f815d3e37b623dc07d90c23c64 |
|
| MD5 | 03cecc88c65ebfb6001658a2e2704888 |
|
| BLAKE2b-256 | a363c83ea6b49f1478cd412f9c9d1bbf7fe173a1bc6a0de17322062c02b4e924 |