nitinmuteja opened a new issue, #32246:
URL: https://github.com/apache/airflow/issues/32246

   ### Description
   
   We have an integration with sentry on Google cloud composer.
   We would like to be alerted for any exceptions happening in airflow , but 
don't want to be alerted when those exceptions would be retried. We tried 
setting alert conditions on number of errors, but it does not solve the problem 
as we have hundreds of instances of a DAG running.
   
   Requirements:
   1. Log as warning when try_number is less than equal to max_tries.
   2. Log as an error in the final try.
   
   
   ### Use case/motivation
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] 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