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


##########
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:
   Actually, Im a little worried about caching here. We need to properly clear 
cache in the right instances else we end up with the wrong value. I've had 
several tests fail on my attempt and Id rather address it in another PR if 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to