Skip to main content

A Django app to provide basic celery health monitoring.

Project description

Celery Heartbeat ===

Django app that provides a task that can be run periodically to hit a webhook url of choice to provide basic celery health monitoring.

Configuration —

Add celery_heartbeat to your INSTALLED_APPS setting:

INSTALLED_APPS = [
    ...
    celery_heartbeat,
]

Celery-heartbeat comes with a request handler that posts to a configured endpoint and sends a token to authenticate with the receiving server:

CELERY_HEARTBEAT_ENDPOINT = 'https://example.com/celery-webhook/
CELERY_HEARTBEAT_TOKEN = '<valid token for endpoint request>'

You will also need to configure the heartbeat task to run periodically using celery-beat:

CELERY_BEAT_SCHEDULE = {
    'celery-heartbeat': {
        'task': 'celery_heartbeat.tasks.send_heartbeat',
        'schedule': crontab(minute='*/5')
    }
}

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

django-celery-heartbeat-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

django_celery_heartbeat-0.1.0-py3-none-any.whl (4.2 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