Skip to main content

Automatic monitoring for Celery periodic tasks. Monitor selective tasks or all tasks with auto-discovery.

Project description

CronRadar Celery Integration

Monitor Celery periodic tasks. Auto-discover Beat schedules and track execution. Get alerts when tasks fail or don't run on schedule.

Installation

pip install cronradar-celery

Configuration

Set environment variable:

export CRONRADAR_API_KEY=ck_app_xxxxx_yyyyy

Or pass it directly:

setup_cronradar(app, api_key='ck_app_xxxxx_yyyyy')

Quick Start

Monitor all periodic tasks by default - use @skip_monitor to opt-out:

from celery import Celery
from cronradar_celery import setup_cronradar, skip_monitor

app = Celery('myapp')
setup_cronradar(app)

@app.task
def send_daily_report():
    # Monitored automatically
    generate_report()

@app.task
@skip_monitor
def internal_cleanup():
    # Opted out
    pass

Decorator Order (Important!)

The @skip_monitor decorator must be placed after @app.task:

# ✅ Correct
@app.task
@skip_monitor
def my_task():
    pass

# ❌ Wrong - won't work
@skip_monitor
@app.task
def my_task():
    pass

Requirements

  • Python 3.8+
  • Celery 5.0+
  • cronradar 1.0+

Links

See also: CronRadar Python SDK

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_celery-0.0.6.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

cronradar_celery-0.0.6-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cronradar_celery-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c04fff27cdbd2e03824c487731085748899fe7bd242b42199761760b0881dc8d
MD5 06d3f9b17b48d4c47c3688247ceafbc3
BLAKE2b-256 b4e3046379d6623cf518c9ff3fb9fa27784e6250c0e06dcbb7881365481351d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cronradar_celery-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 72b4581c1dc4f0318e9ca18a42b1672bb2a545614aea3e6f5b8396fdead1c906
MD5 61a4831e58960d25a16973532b281638
BLAKE2b-256 971785a21b9bdb7e98a4f27562209030c790278f030e2ad65c26567761aa80e4

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