Skip to content

Commit

Permalink
Do not start fast-api when --use-airflow-version uses Airflow 2 (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk authored Jan 16, 2025
1 parent dce8482 commit 17385a2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/in_container/bin/run_tmux
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17385a2

Please sign in to comment.