o-nikolas commented on code in PR #46944:
URL: https://github.com/apache/airflow/pull/46944#discussion_r1964474759
##########
airflow/executors/executor_loader.py:
##########
@@ -344,8 +345,24 @@ def validate_database_executor_compatibility(cls,
executor: type[BaseExecutor])
if engine and engine.dialect.name == "sqlite":
raise AirflowConfigException(f"error: cannot use SQLite with the
{executor.__name__}")
+ @classmethod
+ def _warn_of_deprecated_executor(cls, executor_name: str) -> None:
+ """
+ Warn of deprecated executor.
+
+ :param executor_name: Name of the executor
+ """
+ warnings.warn(
+ f"\nThe use and support of the {executor_name} is deprecated and
will be removed in Airflow 3.0.\n"
+ "Please migrate to using Multiple Executor Configuration
instead:\n"
+
"https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/executor/index.html#using-multiple-executors-concurrently",
Review Comment:
Nice, committed!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]