dgrewal-tc opened a new issue, #42482:
URL: https://github.com/apache/airflow/issues/42482

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   2.9.2
   
   ### What happened?
   
   We are pulling in data from Airflow's task_fail table mentioned 
[here](https://airflow.apache.org/docs/apache-airflow/2.9.2/database-erd-ref.html)
   <img width="235" alt="image" 
src="https://github.com/user-attachments/assets/74c35c07-8888-4817-bcbe-23b89574c980";>
   
   We have a task for which the retires are set to 0
   <img width="313" alt="image" 
src="https://github.com/user-attachments/assets/dbf0a61a-cbf5-4b95-83f0-a17008e9fbf3";>
   
   When this task fail, there are no more retries and the DAG state becomes 
'failed'. We then have to manually fix the error and re-run this task.
   
   We observed that whenever such tasks fail, the records is not logged in 
task_fail table. When the retires are greater than 0, this works perfectly fine 
and the failed tasks are logged.
   
   Can you please check what is happening ?
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Set task retry to 0 and check task_fail table
   
   ### Operating System
   
   Amazon Linux. VERSION=2023
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Amazon (AWS) MWAA
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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