You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But step 2 is not, there's no way to fetch a specific task from that object.
Can we introduce an Airflow 3-equivalent?
Note: if we re-implement ti.get_previous_ti(state='success') for Airflow 3 we could consider actually returning the last successful task instance, instead of the task instance (regardless state) of the last successful Dag Run.
Activity
jroachgolf84 commentedon Dec 18, 2025
I think the change would need to be made here?
airflow/task-sdk/src/airflow/sdk/execution_time/task_runner.py
Line 139 in 3b6e6bf
dstandish commentedon Dec 18, 2025
So....
I would like to complicate this.
The notion of "previous TI" is somewhat ambiguous.
Do we mean by run date or by logical date, for example?
And we are adding the concept of partitions to airflow, which will have its own sense of "previous".
Do you think there is a way that we can avoid fixing this (to avoid the ambiguity) ?
What is the use case?
Add ability to get previous TI on ``RuntimeTaskInstance`` (apache#59712)