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
Metadata
Release files for celery-live 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| celery_live-0.1.1.tar.gz | 3.4 kB | Without provenance | Details for celery_live-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| celery_live-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for celery_live-0.1.1-py3-none-any.whl |
Total release size: 9.3 kB
Release files / celery_live-0.1.1.tar.gz
| Download URL | celery_live-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34e2357f27352938a66ac5cfba87514642a0a149644958da9902279339b8636a
|
|
BLAKE2b-256 checksum How to use checksums |
eb87c2c228d7d14096623f615fe1b01afc9b3e97ff32e62f544d134f0b27e2a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-52-generic
|
Release files / celery_live-0.1.1-py3-none-any.whl
| Download URL | celery_live-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9a5c81d89fe853ebe0421411e2ce12013e3bd633e6ef6da7d632a459f95360c
|
|
BLAKE2b-256 checksum How to use checksums |
4ed41843157ab8c7165472ca062711415169aedfb9a2619e0f4258cf8d1d1b63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-52-generic
|
Security for celery-live 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.