eladkal commented on code in PR #27514:
URL: https://github.com/apache/airflow/pull/27514#discussion_r1015111462
##########
airflow/providers/common/sql/operators/sql.py:
##########
@@ -221,6 +220,16 @@ def execute(self, context):
return output
+ def on_kill(self) -> None:
+ self.log.info("Stopping:", self._hook.query_ids)
+
+ results = []
+ for query_id in self._hook.query_ids.copy():
+ result = self._hook.stop_query(query_id)
+ results.append(result)
+
+ self.log.info("Termination successful:", results)
Review Comment:
I meant to consider just changing the log entry from successful to requested?
--
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]