uranusjr commented on code in PR #56443:
URL: https://github.com/apache/airflow/pull/56443#discussion_r2512976116


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -577,7 +577,7 @@ def ti_skip_downstream(
     "/{task_instance_id}/heartbeat",
     status_code=status.HTTP_204_NO_CONTENT,
     responses={
-        status.HTTP_404_NOT_FOUND: {"description": "Task Instance not found"},
+        status.HTTP_410_GONE: {"description": "Task Instance no longer exists, 
it may have moved to the Task Instance History table"},

Review Comment:
   I think 404 should still exist, there’s a difference between a ti that never 
existed and a ti that existed but is gone.



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