From d980d7c2f1d0bb8067fecccf293f3ddcdddf3fd2 Mon Sep 17 00:00:00 2001 From: wbg Date: Mon, 30 Dec 2019 11:10:28 +0100 Subject: [PATCH] Update entrypoint.sh added $AIRFLOW__CELERY__NO_DEFAULT_BROKER_URL to allow for alternative brokers (rabbitmq in my case) using airflow.cfg --- script/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/entrypoint.sh b/script/entrypoint.sh index fae9bb4942..d3965d68da 100755 --- a/script/entrypoint.sh +++ b/script/entrypoint.sh @@ -64,7 +64,7 @@ if [ "$AIRFLOW__CORE__EXECUTOR" != "SequentialExecutor" ]; then wait_for_port "Postgres" "$POSTGRES_HOST" "$POSTGRES_PORT" fi -if [ "$AIRFLOW__CORE__EXECUTOR" = "CeleryExecutor" ]; then +if [ -z "$AIRFLOW__CELERY__NO_DEFAULT_BROKER_URL" && "$AIRFLOW__CORE__EXECUTOR" = "CeleryExecutor" ]; then AIRFLOW__CELERY__BROKER_URL="redis://$REDIS_PREFIX$REDIS_HOST:$REDIS_PORT/1" wait_for_port "Redis" "$REDIS_HOST" "$REDIS_PORT" fi