diff --git a/airflow/www/views.py b/airflow/www/views.py index a330ae8e98b..296b07e2974 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -512,6 +512,30 @@ def health(self): ) def index(self): """Home view.""" + unit_test_mode: bool = conf.getboolean('core', 'UNIT_TEST_MODE') + + if not unit_test_mode and "sqlite" in conf.get("core", "sql_alchemy_conn"): + db_doc_page = get_docs_url("howto/set-up-database.html") + flash( + Markup( + "Usage of SQLite detected. It should only be used for dev/testing. " + "Do not use SQLite as metadata DB in production. " + "We recommend using Postgres or MySQL. " + f"Click here for more information." + ), + category="warning", + ) + + if not unit_test_mode and conf.get("core", "executor") == "SequentialExecutor": + exec_doc_page = get_docs_url("executor/index.html") + flash( + Markup( + "Usage of SequentialExecutor detected. " + "Do not use SequentialExecutor in production. " + f"Click here for more information." + ), + category="warning", + ) hide_paused_dags_by_default = conf.getboolean('webserver', 'hide_paused_dags_by_default') default_dag_run = conf.getint('webserver', 'default_dag_run_display_number')