kyuubi/externals
Wang, Fei 275079e1de [KYUUBI #6583] Support to cancel Spark python operation
# 🔍 Description
## Issue References 🔗

This pull request fixes #6583

## Background and Goals
Currently, kyuubi cannot perform operation level interrupts when executing Python code. When it is necessary to cancel an operation that has been running for a long time, the entire session needs to be interrupted, and the execution context will be lost, which is very unfriendly to users. Therefore, it is necessary to support operation level interrupts so that the execution context is not lost when the user terminal operates.

## Describe Your Solution 🔧

Refer to the implementation of Jupyter Notebook and let the Python process listen to Signel SIGINT semaphore, when receiving a signel When SIGINT, interrupt the current executing code and capture KeyboardInterrupt to treat it as cancelled

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6612 from yoock/features/support-operation-cancel.

Closes #6583

bf6334d8c [Wang, Fei] log error to do not break the cleanup process
ae7ad3f3c [Wang, Fei] comments
509627e65 [王龙] PySpark support operation cancel

Lead-authored-by: Wang, Fei <fwang12@ebay.com>
Co-authored-by: 王龙 <wanglong16@xiaomi.com>
Signed-off-by: Wang, Fei <fwang12@ebay.com>
(cherry picked from commit 705bb2ae2c)
Signed-off-by: Wang, Fei <fwang12@ebay.com>
2024-08-20 09:50:16 -07:00
..
kyuubi-chat-engine [RELEASE] Bump 1.9.3-SNAPSHOT 2024-07-18 23:42:42 +08:00
kyuubi-download [RELEASE] Bump 1.9.3-SNAPSHOT 2024-07-18 23:42:42 +08:00
kyuubi-flink-sql-engine [KYUUBI #6598] Flink engine module supports building with Scala 2.13 2024-08-09 13:47:54 +08:00
kyuubi-hive-sql-engine [RELEASE] Bump 1.9.3-SNAPSHOT 2024-07-18 23:42:42 +08:00
kyuubi-jdbc-engine [RELEASE] Bump 1.9.3-SNAPSHOT 2024-07-18 23:42:42 +08:00
kyuubi-spark-sql-engine [KYUUBI #6583] Support to cancel Spark python operation 2024-08-20 09:50:16 -07:00
kyuubi-trino-engine [RELEASE] Bump 1.9.3-SNAPSHOT 2024-07-18 23:42:42 +08:00