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


##########
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:
   If the executor field is None then the default executor is used during 
execution - so the logic on API for display is consistent here. If the field on 
the TaskInstance is filled, then it references to the executor that 
specifically is wanted.



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