From fb5b0b461e74975f03cd9a53f827a34565645a17 Mon Sep 17 00:00:00 2001 From: Omer Lachish Date: Tue, 28 Jan 2020 12:02:41 +0000 Subject: [PATCH] remove rq_healthcheck entrypoint and deprecate celery_healthcheck --- bin/docker-entrypoint | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint index ed0db55f5b..eb112c8412 100755 --- a/bin/docker-entrypoint +++ b/bin/docker-entrypoint @@ -39,10 +39,6 @@ create_db() { exec /app/manage.py database create_tables } -rq_healthcheck() { - exec /app/manage.py rq healthcheck -} - help() { echo "Redash Docker." echo "" @@ -54,7 +50,6 @@ help() { echo "dev_worker -- start a single RQ worker with code reloading" echo "scheduler -- start an rq-scheduler instance" echo "dev_scheduler -- start an rq-scheduler instance with code reloading" - echo "rq_healthcheck -- runs a RQ healthcheck that verifies that all local workers are active. Useful for Docker's HEALTHCHECK mechanism." echo "" echo "shell -- open shell" echo "dev_server -- start Flask development server with debugger and auto reload" @@ -96,9 +91,9 @@ case "$1" in shift dev_worker ;; - rq_healthcheck) + celery_healthcheck) shift - rq_healthcheck + echo "DEPRECATED: Celery has been replaced with RQ and now performs healthchecks autonomously as part of the 'worker' entrypoint." ;; dev_server) export FLASK_DEBUG=1