Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev/breeze/doc/images/output_start-airflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dev/breeze/doc/images/output_start-airflow.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5c6ac03e89ec4f0f0137ab4678fae14a
57e1c5585523e7fcf7c3e80527cb34f9
10 changes: 9 additions & 1 deletion dev/breeze/src/airflow_breeze/commands/developer_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def shell(
@click.option(
"--dev-mode",
help="Starts api-server in dev mode (assets are always recompiled in this case when starting) "
"(mutually exclusive with --skip-assets-compilation).",
"(mutually exclusive with --skip-assets-compilation and --use-airflow-version).",
is_flag=True,
)
@click.option(
Expand Down Expand Up @@ -628,6 +628,14 @@ def start_airflow(
)
skip_assets_compilation = True

if dev_mode and use_airflow_version:
get_console().print(
"[error]You cannot set Airflow version in dev mode! Consider switching to the respective "
"version branch if you need to use --dev-mode on a different Airflow version! \nExiting!!"
)

sys.exit(1)

# Automatically enable file polling for hot reloading under WSL
if dev_mode and is_wsl():
os.environ["CHOKIDAR_USEPOLLING"] = "true"
Expand Down
Loading