Allow CeleryPingHealthCheck to check user-specific queues
BoPeng opened this issue · comments
CeleryPingHealthCheck
checks if some pre-defined queues have active workers
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?
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.