o-nikolas commented on code in PR #30727:
URL: https://github.com/apache/airflow/pull/30727#discussion_r1181956002


##########
airflow/executors/kubernetes_executor.py:
##########
@@ -773,6 +364,8 @@ def _change_state(
 
         # If we don't have a TI state, look it up from the db. event_buffer 
expects the TI state
         if state is None:
+            from airflow.models.taskinstance import TaskInstance

Review Comment:
   Yupp, TI is by far one of the worst offenders. There are places where we 
import/load executors (without constructing them) where TI is not already 
imported.



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