ephraimbuddy commented on code in PR #50040:
URL: https://github.com/apache/airflow/pull/50040#discussion_r2075479358


##########
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:
   Is it guaranteed that ti.dag_run cannot be none?



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