dheerajturaga commented on code in PR #57706:
URL: https://github.com/apache/airflow/pull/57706#discussion_r2485092180


##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -556,6 +557,11 @@ def insert_mapping(
             TaskInstance(task=task, run_id=run_id, map_index=map_index, 
dag_version_id=dag_version_id)
         )
 
+        executor = task.executor
+        if executor is None:
+            executor_name = ExecutorLoader.get_default_executor_name()

Review Comment:
   I think thats a good idea. in a DAG with 100 tasks without explicit 
executors, this reduces get_default_executor_name() calls from 100 to just 1-2



-- 
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]

Reply via email to