kaxil commented on a change in pull request #19662:
URL: https://github.com/apache/airflow/pull/19662#discussion_r751684859



##########
File path: airflow/models/baseoperator.py
##########
@@ -1000,7 +1000,7 @@ def post_execute(self, context: Any, result: Any = None):
         if self._post_execute_hook is not None:
             self._post_execute_hook(context, result)
 
-    def on_kill(self) -> None:

Review comment:
       The following change should handle airflow<2.3 -- it checks the function 
signature and see if it has `context` in it or no
   
   
https://github.com/apache/airflow/blob/849ef70cc444342b1cc3fcc71f4e435e4075e48d/airflow/models/taskinstance.py#L1405-L1414




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