kaxil commented on code in PR #64203:
URL: https://github.com/apache/airflow/pull/64203#discussion_r2988201464


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -730,15 +730,12 @@ def ti_heartbeat(
         )
 
     if previous_state != TaskInstanceState.RUNNING:
-        log.warning("Task not in running state", current_state=previous_state)
-        raise HTTPException(
-            status_code=status.HTTP_409_CONFLICT,
-            detail={
-                "reason": "not_running",
-                "message": "TI is no longer in the running state and task 
should terminate",
-                "current_state": previous_state,
-            },

Review Comment:
   Wrong fix! 



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