revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.

Home Page:https://readthedocs.org/projects/django-health-check/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow CeleryPingHealthCheck to check user-specific queues

BoPeng opened this issue · comments

commented

CeleryPingHealthCheck checks if some pre-defined queues have active workers

defined_queues = app.conf.CELERY_QUEUES

Upon checking, we found that the CELERY_QUEUES setting is defined but is empty for our production server. Because this setting is now called task_queues and its documentation suggests against specifying this setting and use automatic routing, we do not want to mess with this option for our server. Can django-health-check allow a setting for a list of queues to check?

This is related to #374.

commented

Yes, but I was expecting a separate setting that allows us to bypass celery configuration since app.conf.CELERY_QUEUES is empty if auto-routing is used. I mean, the production server should be flexible enough to dispatch to available workers automatically but healthcheck should alert us when some workers and/or queues are unavailable.