uranusjr commented on code in PR #23119:
URL: https://github.com/apache/airflow/pull/23119#discussion_r855664618
##########
airflow/models/taskinstance.py:
##########
@@ -1934,20 +1927,26 @@ def handle_failure(
# only mark task instance as FAILED if the next task instance
# try_number exceeds the max_tries ... or if force_fail is truthy
+ task = None
+ try:
+ task = self.task.unmap()
+ except Exception:
+ self.log.error("Unable to unmap task, can't determine if we need
to send an alert email or not")
Review Comment:
Should we log the traceback here with `exception()` instead?
--
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]