huozhanfeng commented on a change in pull request #16768:
URL: https://github.com/apache/airflow/pull/16768#discussion_r663636682



##########
File path: airflow/models/taskinstance.py
##########
@@ -1495,8 +1495,7 @@ def handle_failure(
             except Exception:
                 self.log.exception('Failed to send email to: %s', task.email)
 
-        if not test_mode:
-            session.merge(self)
+        session.merge(self)

Review comment:
       Find the one.  Looks like it's related to airflow test command.
   <pre>
   commit aa01fab4906df3175e5e6589ec0095a5586279db
   Author: Maxime Beauchemin <maxime.beauche...@apache.org>
   Date:   Mon Jan 12 21:54:40 2015 +0000
   
       Improving the test command line subcommand
   
   <pre>




-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to