Skip to main content

Queue health checker for Django

Project description

Django Queue Health

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 stucked.

For an up to date and maintained version of this library, please checkout gitlab.com

Installation

Using pip:

pip install django-queue-health

From git:

pip install git+https://gitlab.com/adaptiware/django-queue-health.git

Usage

  1. Add "queuehealth" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...,
'queuechecker',
]
  1. Add variable "DQH_TRESHOLD" to your settings like this:
# Minutes treshold to check if there is queue log and if queue is running
DQH_TRESHOLD = 10
  1. Configure default django cache.
  2. Queue Health use django rq or celery.
  3. Use commands:
# Push job to queue that updates the timestamp 

python manage.py update_queue_timestamp 

# Check if timestamp in cache less than trashold

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_queue_health-0.2.1-py3-none-any.whl (5.2 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