A better Celery ping for Docker healthcheck
In the previous post the command is
celery inspect ping --app app.celeryapp -d worker@$$HOSTNAME
,
but it initialize the app on each ping and can be expensive.
The lightweight version is celery inspect ping -b "redis://redis:6379/0" -d worker@$$HOSTNAME
.