ashb commented on code in PR #47126:
URL: https://github.com/apache/airflow/pull/47126#discussion_r1973033187


##########
airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -178,22 +180,21 @@ def ti_run(
                 DR.run_type,
                 DR.conf,
                 DR.logical_date,
-            ).filter_by(dag_id=dag_id, run_id=run_id)
+            ).filter_by(dag_id=ti.dag_id, run_id=ti.run_id)
         ).one_or_none()
 
         if not dr:
-            raise ValueError(f"DagRun with dag_id={dag_id} and run_id={run_id} 
not found.")
+            raise ValueError(f"DagRun with dag_id={ti.dag_id} and 
run_id={ti.run_id} not found.")
 
-        # Clear XCom data for the task instance since we are certain it is 
executing
+        # Clear XCom data for the task instance since start we are certain it 
is executing

Review Comment:
   ```suggestion
           # Clear XCom data for the task instance since we are certain it is 
executing
   ```
   



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