Skip to main content

Dead-simple cron job monitoring with auto-registration. Two functions: ping() and sync_monitor(). Self-healing monitors.

Project description

CronRadar Python SDK

Monitor cron jobs with one function call.

Installation

pip install cronradar

Usage

import cronradar

# After your cron job completes successfully
cronradar.monitor('daily-backup')

# With self-healing (auto-register if monitor doesn't exist)
cronradar.monitor('daily-backup', schedule='0 2 * * *')

Lifecycle Tracking

Option 1: Context Manager (Automatic)

with cronradar.job('daily-backup', schedule='0 2 * * *'):
    run_backup()

Option 2: Manual

cronradar.start_job('daily-backup')
try:
    run_backup()
    cronradar.complete_job('daily-backup')
except Exception as e:
    cronradar.fail_job('daily-backup', str(e))
    raise

Configuration

Set environment variable:

  • CRONRADAR_API_KEY: Your CronRadar API key

Links

License

© 2025 CronRadar - See LICENSE

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

cronradar-0.0.6.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cronradar-0.0.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file cronradar-0.0.6.tar.gz.

File metadata

  • Download URL: cronradar-0.0.6.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for cronradar-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3954619a1a266db18fa84ec85b34e0a168ef1b4e62d0cbd121e088d122db46f9
MD5 a2e53dd673854904950ac9f74dc3af43
BLAKE2b-256 e39c55bf321c697432bae937f3000488d8353da1f9cd5ab37611d7dc0f46892b

See more details on using hashes here.

File details

Details for the file cronradar-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: cronradar-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for cronradar-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 acf08bb92af9618508d7adf1b05ed80e016d4e21af6adc296c09386fc375f444
MD5 165e780c175a35478b276826cb4b3a47
BLAKE2b-256 8d532a67df0f2343c79b27dc28c53c44d9b5273398b2d182c7c828e12b010019

See more details on using hashes here.

Supported by

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