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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-celery-heartbeat-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f677e8acb22fd98465ee217f74d8ec5a5199993842a464cf076034d79932e810 |
|
MD5 | 3f0c787211460bee688cf18c4b3b7474 |
|
BLAKE2b-256 | 8fb4abe46d22815f2abd51865ffb92d4a4ff2174ae04a2b0cd7d98c56e8a1b3c |
Close
Hashes for django_celery_heartbeat-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6660a2955ff1b9529996a0678a3869a52b738aedf72a46b420e89b82c25e9a34 |
|
MD5 | ba0cbde83eca2bc8da0dda1cf739e2a2 |
|
BLAKE2b-256 | af32af534f582a7062d32c5831abd93479a30420ad045c6ca71134f940bca1ff |