@@ -43,6 +43,9 @@ export TMUX_SESSION="Airflow"
43
43
# Start New Session with our name
44
44
tmux new-session -d -s " ${TMUX_SESSION} "
45
45
46
+ tmux set -g pane-border-format " #{pane_index}: #{@airflow_component}"
47
+ tmux set -g pane-border-status " top"
48
+
46
49
# Enable mouse interaction with tmux. This allows selecting between the panes
47
50
# by clicking with the mouse and also allows scrolling back through terminal
48
51
# output with the mouse wheel.
@@ -54,10 +57,12 @@ tmux send-keys -t 'Main' 'bash' C-m 'clear' C-m
54
57
55
58
tmux split-window -v
56
59
tmux select-pane -t 1
60
+ tmux set-option -p @airflow_component Scheduler
57
61
tmux send-keys ' airflow scheduler' C-m
58
62
59
63
tmux split-window -h
60
64
tmux select-pane -t 2
65
+ tmux set-option -p @airflow_component FastAPI
61
66
62
67
if [[ ! ${USE_AIRFLOW_VERSION=} =~ ^2\. .* ]]; then
63
68
if [[ ${DEV_MODE=} == " true" ]]; then
69
74
70
75
tmux split-window -h
71
76
tmux select-pane -t 3
77
+ tmux set-option -p @airflow_component Webserver
72
78
if [[ ${DEV_MODE=} == " true" ]]; then
73
79
tmux send-keys ' airflow webserver -d' C-m
74
80
else
77
83
78
84
tmux select-pane -t 0
79
85
tmux split-window -h
86
+ tmux set-option -p @airflow_component Triggerer
80
87
tmux send-keys ' airflow triggerer' C-m
81
88
82
89
if [[ ${INTEGRATION_CELERY} == " true" ]]; then
83
90
tmux select-pane -t 0
84
91
tmux split-window -h
92
+ tmux set-option -p @airflow_component " Celery Worker"
85
93
tmux send-keys ' airflow celery worker' C-m
86
94
fi
87
95
if [[ ${INTEGRATION_CELERY} == " true" && ${CELERY_FLOWER} == " true" ]]; then
88
96
tmux select-pane -t 3
89
97
tmux split-window -h
98
+ tmux set-option -p @airflow_component Flower
90
99
tmux send-keys ' airflow celery flower' C-m
91
100
fi
92
101
if [[ ${AIRFLOW__CORE__EXECUTOR} == " airflow.providers.edge.executors.edge_executor.EdgeExecutor" ]]; then
93
102
tmux select-pane -t 0
94
103
tmux split-window -h
104
+ tmux set-option -p @airflow_component EdgeExec
95
105
96
106
# Ensure we are not leaking any DB connection information to Edge Worker process
97
107
tmux send-keys ' unset AIRFLOW__DATABASE__SQL_ALCHEMY_CONN' C-m
109
119
if [[ ${STANDALONE_DAG_PROCESSOR} == " true" ]]; then
110
120
tmux select-pane -t 3
111
121
tmux split-window -h
122
+ tmux set-option -p @airflow_component " DAG Pocessor"
112
123
tmux send-keys ' airflow dag-processor' C-m
113
124
fi
114
125
0 commit comments