holmuk commented on issue #64957:
URL: https://github.com/apache/airflow/issues/64957#issuecomment-4215717799

   I did a bit of research and found that TaskInstance uniqueness is defined by 
(dag_id, task_id, run_id, map_index) (see 
https://github.com/apache/airflow/blob/f4f48b9abfb17450f66f68beb5170d0faf6d0571/airflow-core/src/airflow/models/taskinstance.py#L590-L592)
   
   The fact that `get_task_instance` doesn't include `dag_id` appears to 
violate this invariant. This can lead to multiple rows being returned when 
multiple DAGs share the same `task_id` and `run_id`.
   
   I'm going to fix this and add a regression test to cover this case (TI 
uniqueness).


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