PowerShell / PowerShell/PowerShellEditorServices
Improve pipeline thread consumer task cancellation
未关闭
还没有人认领这个 Issue。
Area-Engine
Area-Threading
Issue-Bug
- 主要语言
- C#
- 星标
- 767
- 派生
- 266
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 1
描述
Because the pipeline thread consumer is single-threaded and runs tasks sequentially, there's the real possibility that a single bad task could starve it.
For now, Ctrl+C should cancel whatever task is running. This may indeed include background tasks...
But some ideas for improving this are:
- A key-chord to cancel/unblock the pipeline thread when something other than console input is being run
- A monitor thread to supervise the pipeline thread that:
- Logs when tasks drag on
- Alerts users to long running tasks
- Allows cancellation
- Can completely reset the main runspace...
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定文件、测试或入口点。先定位 pipeline 线程消费者,并跟踪其现有的 Ctrl+C 取消路径;在修改之前,明确需要的取消和监控行为。完成标准应包括一种已达成共识的方法,以防止长时间运行的任务使消费者得不到调度。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, powershell
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100