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 details)

Uploaded Source

Built Distribution

django_celery_heartbeat-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file django-celery-heartbeat-0.1.0.tar.gz.

File metadata

  • Download URL: django-celery-heartbeat-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

File hashes

Hashes for django-celery-heartbeat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f677e8acb22fd98465ee217f74d8ec5a5199993842a464cf076034d79932e810
MD5 3f0c787211460bee688cf18c4b3b7474
BLAKE2b-256 8fb4abe46d22815f2abd51865ffb92d4a4ff2174ae04a2b0cd7d98c56e8a1b3c

See more details on using hashes here.

File details

Details for the file django_celery_heartbeat-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_celery_heartbeat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

File hashes

Hashes for django_celery_heartbeat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6660a2955ff1b9529996a0678a3869a52b738aedf72a46b420e89b82c25e9a34
MD5 ba0cbde83eca2bc8da0dda1cf739e2a2
BLAKE2b-256 af32af534f582a7062d32c5831abd93479a30420ad045c6ca71134f940bca1ff

See more details on using hashes here.

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