Is there a clean way in celery for knowing whether its broker and/or the result backend are down or not?
I am using celery with RabbitMQ broker and Redis backend.
Currently, the easiest way I found is submitting a dummy task which would raise kombu.exceptions.OperationalError
when the broker is down, and redis.exceptions.ConnectionError
when the backend is down.
This feels hacky, however. Is there a better way?