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 @@
0e0e91f58cc936fdc0c2f2621f23fb3e
6de827b3ac600a7b488313a094d227a0
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