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

CeleryPingHealthCheck: Add 'limit' argument for ping

cbwchuck opened this issue · comments

CeleryPingHealthCheck makes use of celery.app.control.ping with timeout argument set.

But celery always wait for timeout seconds before returning the responses, which is a bit counter-intuitive.

If what we want here is to return the ping result immediately after receiving the responses, we will need to specify limit=<num_of_celery_workers_expect_to_see> as documented in Celery's documentation.