jscheffl commented on code in PR #57590:
URL: https://github.com/apache/airflow/pull/57590#discussion_r2480247415


##########
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:
   As we call on task instance potentially often and there is a bunch of logic 
behind this - but w/o DB access - to wire up executor details... should the 
called `get_default_executor_name()` method being implement the @cache 
decorator?



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