jedcunningham commented on code in PR #29743:
URL: https://github.com/apache/airflow/pull/29743#discussion_r1117378098


##########
airflow/models/taskinstance.py:
##########
@@ -73,10 +73,12 @@
 from airflow.exceptions import (
     AirflowException,
     AirflowFailException,
+    AirflowKillSignal,

Review Comment:
   ```suggestion
   ```



##########
airflow/models/taskinstance.py:
##########
@@ -1567,10 +1568,15 @@ def signal_handler(signum, frame):
 
             # Execute the task
             with set_current_context(context):
-                result = self._execute_task(context, task_orig)
-
-            # Run post_execute callback
-            self.task.post_execute(context=context, result=result)
+                try:
+                    result = self._execute_task(context, task_orig)
+                    # Run post_execute callback
+                    self.task.post_execute(context=context, result=result)
+                except AirflowKillSignal:

Review Comment:
   ```suggestion
                   except AirflowTermSignal:
   ```



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