turboFei commented on code in PR #6612: URL: https://github.com/apache/kyuubi/pull/6612#discussion_r1720119645
########## externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/ExecutePython.scala: ########## @@ -225,6 +231,19 @@ case class SessionPythonWorker( pythonWorkerMonitor.interrupt() workerProcess.destroy() } + + def cancel(): Unit = { + val field = workerProcess.getClass.getDeclaredField("pid") + field.setAccessible(true) + val pid = field.getLong(workerProcess) + val builder = new ProcessBuilder(Seq("kill", "-2", pid.toString).asJava) Review Comment: Could you add comment here? ``` // sends a SIGINT (interrupt) signal, similar to Ctrl-C ``` -- 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: notifications-unsubscr...@kyuubi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org For additional commands, e-mail: notifications-h...@kyuubi.apache.org