ashb commented on a change in pull request #12766:
URL: https://github.com/apache/airflow/pull/12766#discussion_r536334220
##########
File path: scripts/in_container/prod/entrypoint_prod.sh
##########
@@ -111,25 +111,25 @@ else
verify_db_connection "${AIRFLOW__CORE__SQL_ALCHEMY_CONN}"
fi
-# Note: the broker backend configuration concerns only a subset of Airflow
components
-if [[ ${AIRFLOW_COMMAND} =~ ^(scheduler|worker|flower)$ ]]; then
- if [[ -n "${AIRFLOW__CELERY__BROKER_URL_CMD=}" ]]; then
- verify_db_connection "$(eval "$AIRFLOW__CELERY__BROKER_URL_CMD")"
- else
- AIRFLOW__CELERY__BROKER_URL=${AIRFLOW__CELERY__BROKER_URL:=}
- if [[ -n ${AIRFLOW__CELERY__BROKER_URL=} ]]; then
- verify_db_connection "${AIRFLOW__CELERY__BROKER_URL}"
- fi
- fi
-fi
if [[ ${AIRFLOW_COMMAND} == "bash" ]]; then
shift
exec "/bin/bash" "${@}"
-elif [[ ${AIRFLOW_COMMAND} == "python" ]]; then
- shift
- exec "python" "${@}"
elif [[ ${AIRFLOW_COMMAND} == "airflow" ]]; then
+ AIRFLOW_COMMAND="${2}"
+ # Note: the broker backend configuration concerns only a subset of Airflow
components
+ if [[ ${AIRFLOW_COMMAND} =~ ^(scheduler|worker|flower)$ ]]; then
Review comment:
Oh this should also have `celery` in the list for 2.0 compat (it's
`airflow celery worker` there, `airflow worker` still on 1.10
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]