Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Celery health check endpoint and corresponding unit tests #1536

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

sudan45
Copy link
Contributor

@sudan45 sudan45 commented Oct 16, 2024

Addresses

Feature:

  • Introduced a health check endpoint (HealthCheckView) that allows clients to verify the status of the Celery worker.
  • The endpoint responds with a "healthy" status when the worker is active and responsive, and "unhealthy" if not.

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • n+1 queries
  • flake8 issues
  • print
  • typos
  • unwanted comments

This PR contains valid:

  • tests
  • permission checks (tests here too)
  • translations

@thenav56
Copy link
Member

Let's explore this https://github.com/revsys/django-health-check
It already has ping function https://github.com/revsys/django-health-check/blob/master/health_check/contrib/celery_ping/backends.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants