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


##########
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:
   @pdellarciprete That's a bug somewhere that needs fixing but the current fix 
here -- which this comment thread is for -- is too late. What needs to be fixed 
is workers not able to even run duplicate task -- not when task has run on both 
workers and both are trying to update it state.
   
   This endpoint in this file is for the same.



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