From 17385a226cdf5e21cfaeb6e91e7799a8609c2b2a Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Thu, 16 Jan 2025 22:22:09 +0100 Subject: [PATCH] Do not start fast-api when `--use-airflow-version` uses Airflow 2 (#45724) --- scripts/in_container/bin/run_tmux | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/in_container/bin/run_tmux b/scripts/in_container/bin/run_tmux index 25725b40912c3..b1fa9350702ba 100755 --- a/scripts/in_container/bin/run_tmux +++ b/scripts/in_container/bin/run_tmux @@ -59,10 +59,12 @@ tmux send-keys 'airflow scheduler' C-m tmux split-window -h tmux select-pane -t 2 -if [[ ${DEV_MODE=} == "true" ]]; then - tmux send-keys 'airflow fastapi-api -d' C-m -else - tmux send-keys 'airflow fastapi-api' C-m +if [[ ! ${USE_AIRFLOW_VERSION=} =~ ^2\..* ]]; then + if [[ ${DEV_MODE=} == "true" ]]; then + tmux send-keys 'airflow fastapi-api -d' C-m + else + tmux send-keys 'airflow fastapi-api' C-m + fi fi tmux split-window -h