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


##########
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:
   > 2 workers shouldn't be running the same task!
   
   That's true, but it's happening in the K-Executor :/  
https://github.com/apache/airflow/issues/57618#issuecomment-3654781912



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