Skip to main content

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


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)

Uploaded Source

Built Distribution

cronpulse-0.3.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page