From 588181ad9f1cf186e1236aff7e733fe63adaa6d6 Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Tue, 22 Oct 2024 03:08:42 +0100 Subject: [PATCH] Fix `tmux` error Without this tmux runs fine, but when you exit, you see the following: ``` root@7baa3481ecf9:/opt/airflow# scripts/in_container/bin/run_tmux can't find pane: 2 [exited] ``` That is because we are trying to select a pane that doesn't exist yet. --- scripts/in_container/bin/run_tmux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/in_container/bin/run_tmux b/scripts/in_container/bin/run_tmux index dc9928d689ad9..8ec04f0e50eb2 100755 --- a/scripts/in_container/bin/run_tmux +++ b/scripts/in_container/bin/run_tmux @@ -56,9 +56,9 @@ tmux split-window -v tmux select-pane -t 1 tmux send-keys 'airflow scheduler' C-m - -tmux select-pane -t 2 tmux split-window -h +tmux select-pane -t 2 + if [[ ${DEV_MODE=} == "true" ]]; then tmux send-keys 'airflow fastapi-api -d' C-m else