potiuk commented on a change in pull request #6596: [AIRFLOW-6004] Untangle Executors class to avoid cyclic imports URL: https://github.com/apache/airflow/pull/6596#discussion_r352748854
########## File path: airflow/models/dag.py ########## @@ -1254,9 +1253,11 @@ def run( """ from airflow.jobs import BackfillJob if not executor and local: + from airflow.executors.local_executor import LocalExecutor executor = LocalExecutor() elif not executor: - executor = get_default_executor() + from airflow.executors.executor_loader import ExecutorLoader Review comment: I also do not feel confident about having pluginnable executors. I was quite surprised to see that it was possible. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services