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')
}
}
Release files for django-celery-heartbeat 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-celery-heartbeat-0.1.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_celery_heartbeat-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / django-celery-heartbeat-0.1.0.tar.gz
| Download URL | django-celery-heartbeat-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f677e8acb22fd98465ee217f74d8ec5a5199993842a464cf076034d79932e810
|
|
BLAKE2b-256 checksum How to use checksums |
8fb4abe46d22815f2abd51865ffb92d4a4ff2174ae04a2b0cd7d98c56e8a1b3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / django_celery_heartbeat-0.1.0-py3-none-any.whl
| Download URL | django_celery_heartbeat-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6660a2955ff1b9529996a0678a3869a52b738aedf72a46b420e89b82c25e9a34
|
|
BLAKE2b-256 checksum How to use checksums |
af32af534f582a7062d32c5831abd93479a30420ad045c6ca71134f940bca1ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|