Skip to content

Commit b0cc7e1

Browse files
authored
Removes hardcoded api_key in run_tmux (#64073)
This was left over when adding the go worker into breeze
1 parent 78f8c97 commit b0cc7e1

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

scripts/in_container/bin/run_tmux

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ fi
6565
if [[ ! ${USE_AIRFLOW_VERSION=} =~ ^2\..* ]]; then
6666
tmux split-window -h
6767
tmux select-pane -t 2
68-
if [[ ${GO_WORKER} == "true" ]]; then
69-
API_SECRET_KEY="4cT8uMo04i5fOFoSICIMnw=="
70-
tmux send-keys "export AIRFLOW__API_AUTH__JWT_SECRET=${API_SECRET_KEY}" C-m
71-
fi
7268
if [[ ${BREEZE_DEBUG_APISERVER} == "true" ]]; then
7369
tmux set-option -p @airflow_component "API Server(Debug Mode)"
7470
tmux send-keys "debugpy --listen 0.0.0.0:${BREEZE_DEBUG_APISERVER_PORT} --wait-for-client -m airflow api-server -d" C-m
@@ -149,9 +145,6 @@ if [[ ${AIRFLOW__CORE__EXECUTOR} == "airflow.providers.edge3.executors.edge_exec
149145

150146
# Ensure logs are smelling like Remote and are not visible to other components
151147
tmux send-keys 'export AIRFLOW__LOGGING__BASE_LOG_FOLDER=edge_logs' C-m
152-
if [[ ${GO_WORKER} == "true" ]]; then
153-
tmux send-keys "export AIRFLOW__API_AUTH__JWT_SECRET=${API_SECRET_KEY}" C-m
154-
fi
155148
# Start Edge Worker and make a "breeze" hostname, let it pick only default queue
156149
tmux send-keys 'airflow edge worker --edge-hostname breeze --queues default' C-m
157150
fi
@@ -176,9 +169,9 @@ if [[ ${GO_WORKER} == "true" ]]; then
176169
tmux send-keys "cd go-sdk" C-m
177170
tmux send-keys "export AIRFLOW__EDGE__API_URL=http://localhost:8080" C-m
178171
tmux send-keys "export AIRFLOW__BUNDLES__FOLDER=./bin" C-m
179-
tmux send-keys "export AIRFLOW__API_AUTH__SECRET_KEY=${API_SECRET_KEY}" C-m
180-
tmux send-keys "export AIRFLOW__LOGGING__SECRET_KEY=${API_SECRET_KEY}" C-m
181-
tmux send-keys "./cmd/airflow-go-edge-worker/main.go run" C-m
172+
tmux send-keys "export AIRFLOW__API_AUTH__SECRET_KEY=${AIRFLOW__API_AUTH__JWT_SECRET}" C-m
173+
tmux send-keys "export AIRFLOW__LOGGING__SECRET_KEY=${AIRFLOW__API_AUTH__JWT_SECRET}" C-m
174+
tmux send-keys "go run ./cmd/airflow-go-edge-worker/main.go run" C-m
182175
fi
183176

184177
# Attach Session, on the Main window

0 commit comments

Comments
 (0)