Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celery_live-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

celery_live-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file celery_live-0.1.1.tar.gz.

File metadata

  • Download URL: celery_live-0.1.1.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

Hashes for celery_live-0.1.1.tar.gz
Algorithm Hash digest
SHA256 34e2357f27352938a66ac5cfba87514642a0a149644958da9902279339b8636a
MD5 9447a1252a70764d9267d2e673b2c980
BLAKE2b-256 eb87c2c228d7d14096623f615fe1b01afc9b3e97ff32e62f544d134f0b27e2a8

See more details on using hashes here.

File details

Details for the file celery_live-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: celery_live-0.1.1-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

Hashes for celery_live-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9a5c81d89fe853ebe0421411e2ce12013e3bd633e6ef6da7d632a459f95360c
MD5 b6ed927bd21024680cee6ca98addfecf
BLAKE2b-256 4ed41843157ab8c7165472ca062711415169aedfb9a2619e0f4258cf8d1d1b63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page