codecae commented on code in PR #59650:
URL: https://github.com/apache/airflow/pull/59650#discussion_r2655610935


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -384,6 +384,17 @@ def ti_update_state(
         )
 
     if previous_state != TaskInstanceState.RUNNING:
+        # In HA, it's possible to receive a "late" finish/state update after 
another
+        # component already moved the TI to a terminal state. Treat this as an 
idempotent no-op to avoid
+        # crashing the process.

Review Comment:
   I have experienced the same state update issues with the CeleryExecutor, as 
well.  It doesn't appear to be isolated to the k8s executor.



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