dstandish commented on code in PR #50040:
URL: https://github.com/apache/airflow/pull/50040#discussion_r2075484766
##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -285,7 +285,12 @@ def clear_task_instances(
# the task is terminated and becomes eligible for retry.
ti.state = TaskInstanceState.RESTARTING
else:
- ti_dag = dag if dag and dag.dag_id == ti.dag_id else
dag_bag.get_dag(ti.dag_id, session=session)
+ dr = ti.dag_run
Review Comment:
i believe this guarantees it?
<img width="498" alt="image"
src="https://github.com/user-attachments/assets/f5d7b27c-ba3a-4431-ad22-39c221bffac5"
/>
--
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]