Speed up breeze start-airflow by skipping a redundant CLI call by Andrushika · Pull Request #73174 · apache/airflow · GitHub
Skip to content

Speed up breeze start-airflow by skipping a redundant CLI call - #73174

Open
Andrushika wants to merge 1 commit into
apache:mainfrom
Andrushika:read-auth-manager-from-env
Open

Andrushika wants to merge 1 commit into
apache:mainfrom
Andrushika:read-auth-manager-from-env

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Why

check_environment.sh runs airflow config get-value core auth_manager on every breeze start-airflow to see if it should create the FAB admin user. That starts a full Airflow process just to print one value. breeze already sets AIRFLOW__CORE__AUTH_MANAGER, and env vars win in config lookup, so the CLI only echoes it back. On my machine that call takes 2.2 to 2.6s each start.

What

Read the env var in the shell first. Fall back to the CLI only when it is empty, which keeps the Airflow 2.x path working.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5.1)

Generated-by: Claude Code (Fable 5.1) following the guidelines

check_environment.sh only needs the auth manager class path to decide
whether to create FAB users. breeze always exports
AIRFLOW__CORE__AUTH_MANAGER, and env vars are first in Airflow's config
lookup, so the CLI would print that same value after a full Airflow
startup. Read the env var directly and keep the CLI as a fallback.
@Andrushika
Andrushika marked this pull request as draft September 15, 2026 11:18
@Andrushika
Andrushika marked this pull request as ready for review September 15, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant