Skip to main content

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

Metadata

Release files for django-queue-health 0.2.1

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

Built distribution (wheel)

Table of built distributions (wheels) for django-queue-health 0.2.1
File Interpreter ABI Platform Actions
django_queue_health-0.2.1-py3-none-any.whl Python 3 none any Details for django_queue_health-0.2.1-py3-none-any.whl

Release files / django_queue_health-0.2.1-py3-none-any.whl

Download URL django_queue_health-0.2.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba0570b844b754f466726c0d68f900f7d50f747c783164a13a2f819dc50960a3
BLAKE2b-256 checksum
How to use checksums
537843d090e46ee56eec9ca3c3e871d50e711016308b3406850064504cb283e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.4

Security for django-queue-health 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file No provenance

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