This is an automated email from the ASF dual-hosted git repository. ash pushed a commit to branch start-airflow-name-panes in repository https://gitbox.apache.org/repos/asf/airflow.git
commit c8c60c600db14889b855e769892c7846d976a7e0 Author: Ash Berlin-Taylor <[email protected]> AuthorDate: Thu Feb 20 16:30:01 2025 +0000 Give each tmux pane in `start-airflow` a title to make it clear what is running --- scripts/in_container/bin/run_tmux | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/in_container/bin/run_tmux b/scripts/in_container/bin/run_tmux index b1fa9350702..62092183484 100755 --- a/scripts/in_container/bin/run_tmux +++ b/scripts/in_container/bin/run_tmux @@ -43,6 +43,9 @@ export TMUX_SESSION="Airflow" # Start New Session with our name tmux new-session -d -s "${TMUX_SESSION}" +tmux set -g pane-border-format "#{pane_index}: #{@airflow_component}" +tmux set -g pane-border-status "top" + # Enable mouse interaction with tmux. This allows selecting between the panes # by clicking with the mouse and also allows scrolling back through terminal # output with the mouse wheel. @@ -54,10 +57,12 @@ tmux send-keys -t 'Main' 'bash' C-m 'clear' C-m tmux split-window -v tmux select-pane -t 1 +tmux set-option -p @airflow_component Scheduler tmux send-keys 'airflow scheduler' C-m tmux split-window -h tmux select-pane -t 2 +tmux set-option -p @airflow_component FastAPI if [[ ! ${USE_AIRFLOW_VERSION=} =~ ^2\..* ]]; then if [[ ${DEV_MODE=} == "true" ]]; then @@ -69,6 +74,7 @@ fi tmux split-window -h tmux select-pane -t 3 +tmux set-option -p @airflow_component Webserver if [[ ${DEV_MODE=} == "true" ]]; then tmux send-keys 'airflow webserver -d' C-m else @@ -77,21 +83,25 @@ fi tmux select-pane -t 0 tmux split-window -h +tmux set-option -p @airflow_component Triggerer tmux send-keys 'airflow triggerer' C-m if [[ ${INTEGRATION_CELERY} == "true" ]]; then tmux select-pane -t 0 tmux split-window -h + tmux set-option -p @airflow_component "Celery Worker" tmux send-keys 'airflow celery worker' C-m fi if [[ ${INTEGRATION_CELERY} == "true" && ${CELERY_FLOWER} == "true" ]]; then tmux select-pane -t 3 tmux split-window -h + tmux set-option -p @airflow_component Flower tmux send-keys 'airflow celery flower' C-m fi if [[ ${AIRFLOW__CORE__EXECUTOR} == "airflow.providers.edge.executors.edge_executor.EdgeExecutor" ]]; then tmux select-pane -t 0 tmux split-window -h + tmux set-option -p @airflow_component EdgeExec # Ensure we are not leaking any DB connection information to Edge Worker process tmux send-keys 'unset AIRFLOW__DATABASE__SQL_ALCHEMY_CONN' C-m @@ -109,6 +119,7 @@ fi if [[ ${STANDALONE_DAG_PROCESSOR} == "true" ]]; then tmux select-pane -t 3 tmux split-window -h + tmux set-option -p @airflow_component "DAG Pocessor" tmux send-keys 'airflow dag-processor' C-m fi
