current_state method of TaskInstance fails for mapped task instance #27864
Labels
affected_version:2.4
Issues Reported for 2.4
area:core
area:dynamic-task-mapping
AIP-42
kind:bug
This is a clearly a bug
Apache Airflow version
2.4.3
What happened
current_state
method on TaskInstance doesn't filter bymap_index
so calling this method on mapped task instance fails.airflow/airflow/models/taskinstance.py
Lines 708 to 726 in fb7c6af
What you think should happen instead
map_index should also be filtered in the query to return single TaskInstance object.
How to reproduce
Operating System
Ubuntu
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: