turboFei commented on code in PR #6612:
URL: https://github.com/apache/kyuubi/pull/6612#discussion_r1722485422
##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/ExecutePython.scala:
##########
@@ -171,6 +171,12 @@ class ExecutePython(
}
}
}
+
+ override def cancel(): Unit = {
+ logger.info(s"Staring to cancel python code: $statement")
+ worker.cancel()
+ super.cancel()
Review Comment:
```
override def cleanup(targetState: OperationState): Unit = {
if (!isTerminalState(state)) {
info(s"Staring to cancel python code: $statement")
worker.cancel()
}
super.cleanup(targetState)
}
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]