Rahulk14 commented on issue #45925:
URL: https://github.com/apache/airflow/issues/45925#issuecomment-2796549303

   **When we mark a task as "Failed", Airflow immediately stops the running 
task. Here's why:**
   
   - We're using Airflow version 3.
   - In newer versions of Airflow, there's a graceful shutdown mechanism for 
running tasks when you mark them as failed.
   
   
   **How it works in newer versions:**
   
   - Mark as Failed → Send SIGTERM to the task → Wait → If not stopped, send 
SIGKILL
   - This ensures the task is properly terminated.
   
   
   **Comparison:**
   
   - New Airflow: Mark as Failed → Task gets terminated properly
   - Old Airflow: Mark as Failed → Task might keep running → Could result in a 
false success overwrite
   
   
![Image](https://github.com/user-attachments/assets/f667e564-eb3e-4f5e-862d-8d310b85b143)
   
![Image](https://github.com/user-attachments/assets/1db7965d-a04e-4863-ae5c-50798cd6f7f7)


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