kriti-sc commented on code in PR #56443:
URL: https://github.com/apache/airflow/pull/56443#discussion_r2408964719


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -605,12 +605,12 @@ def ti_heartbeat(
             "Retrieved current task state", state=previous_state, 
current_hostname=hostname, current_pid=pid
         )
     except NoResultFound:
-        log.error("Task Instance not found")
+        log.error("Task Instance not found in Task Instance table, might have 
moved to the Task Instance History table")

Review Comment:
   Could there be other reasons the task instance isn't found in the TI table? 
If so, we could keep 404 and just mention in the error message that the task 
instance might have been moved. 



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