Cannot interrupt top-level coroutine
未关闭
bug
- 主要语言
- Python
- 星标
- 734
- 派生
- 411
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 8
描述
It looks like interrupting a cell execution which consists of awaiting a top-level coroutine, e.g.:
```python
import asyncio
async def main():
await asyncio.sleep(5)
await main()
```
doesn't take effect immediately, but once the coroutine completes execution.
See #880 for a test that reveals this bug.
贡献指南
调研方向
从 issue 中顶层 coroutine 的复现代码开始,并检查 #880 引用的测试。验证等待 asyncio.sleep(5) 时的中断处理行为;完成的标准是,cell 被中断后会立即停止,而不是等待 coroutine 完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter, python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100