From 5bde262ad76fc93941f42dd3c881fa6ff0bc5cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 2 Jun 2017 17:33:15 +0200 Subject: [PATCH] Ping Celery workers when starting up. This makes debugging Celery/RabbitMQ/Redis issues much easier, as it happens at application startup, rather than when we first create a Celery task. --- pillar/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pillar/__init__.py b/pillar/__init__.py index c60da2ab..668448a5 100644 --- a/pillar/__init__.py +++ b/pillar/__init__.py @@ -345,6 +345,9 @@ class PillarServer(Eve): result_expires=3600, ) + self.log.info('Pinging Celery workers') + self.log.info('Response: %s', self.celery.control.ping()) + def register_static_file_endpoint(self, url_prefix, endpoint_name, static_folder): from pillar.web.staticfile import PillarStaticFile