Skip to main content

django app for checking queue health. Targeted to be used for Kubernetes deployments

Project description

dj-queue-health - framework

Simple django app for checking queue health. Targeted to be used for Kubernetes deployments to periodically schedule update_queue_timestamp and set timestamp and verified by test_queue_health as a probe to verify if worker works and is not stacked.

Installation

  • Using pip:
pip install dj-queue-health

Usage

  • Add dj_queue_health to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...,
"dj_queue_health",
]
  • Add variable django_queue_health to your settings like this:
# Minutes django_queue_health to check if there is queue log and if queue is running
django_queue_health = 10
# Push job to queue that updates the timestamp

python manage.py update_queue_timestamp

# Check if timestamp in cache less than django_queue_health

python manage.py test_queue_health

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

dj_queue_health-1.0.0.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

dj_queue_health-1.0.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

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