A readiness and liveness probe service for Celery
Project description
Celery Live
Celery Live is a library for monitoring the health of Celery workers and beat. Designed to be easy to use with kubernetes, it is heavily based on this blog post but packaged for easy deployment.
Usage
In your celery app, add the following code:
from celery import Celery
from celery_live import (
enable_beat_liveness_checks,
enable_beat_readiness_checks,
enable_worker_liveness_checks,
enable_worker_readiness_checks,
)
app = Celery("ptk_connect")
enable_beat_readiness_checks(app)
enable_worker_readiness_checks(app)
enable_beat_liveness_checks(app)
enable_worker_liveness_checks(app)
You can then run these commands to determine liveness or readiness state of beat or worker
- celery-live beat live
- celery-live beat ready
- celery-live worker live
- celery-live worker ready
this would be configured in kubernetes like
livenessProbe:
exec:
command:
- celery-live
- worker
- live
initialDelaySeconds: 5
periodSeconds: 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file celery_live-0.1.0.tar.gz.
File metadata
- Download URL: celery_live-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ddd285eacacf859cd39310169b0851ab46f9dbdb6ce22d3b1211de2a3658ff
|
|
| MD5 |
036feee27b43447da0d1803a3cbcb6fc
|
|
| BLAKE2b-256 |
ab4fa31e38c37131fc6528cf5ce2e70607d3c2ebd14f974c07ea80c47a83bc1b
|
File details
Details for the file celery_live-0.1.0-py3-none-any.whl.
File metadata
- Download URL: celery_live-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
530bfb6b1aaacb1243aab29085e79f5123fe43f0fd528051d47cff4ec4d6fb54
|
|
| MD5 |
f65db191753e8d170ed5ef8ab3826081
|
|
| BLAKE2b-256 |
6555a3261a2985dbe62694bef757834cad7f6a28c6c7842dcdafec2dc304f2e8
|