Skip to main content

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

Metadata

Release files for dj_queue_health 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dj_queue_health 1.0.0
File Size Uploaded
dj_queue_health-1.0.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dj_queue_health 1.0.0
File Interpreter ABI Platform
dj_queue_health-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / dj_queue_health-1.0.0.tar.gz

Download URL dj_queue_health-1.0.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9115ee4ac0b8f0fa6dfcfed47b40e6f682c4e720e263aa7be34bb866a326bec3
BLAKE2b-256 checksum
How to use checksums
522fe746a4d54df91bfdf441418891ffb5098d55aba2080131c440b529ac98e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Release files / dj_queue_health-1.0.0-py3-none-any.whl

Download URL dj_queue_health-1.0.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db14e5571cd8ef676403e274ef6d47e8ad9dd02af37b3e48a0d27eea787c9135
BLAKE2b-256 checksum
How to use checksums
5fc728758c03da63335d9dfbe2478967f7c67c2674e2419f60269a535374f0b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page