don't automatically dispatch to a busy session
还没有人认领这个 Issue。
- #80 来自 @simonpcouch —— 已关闭,未合并
评估
调研方向
首先跟踪 mcp_session() 的默认 dispatch 行为,并将其与 list_r_sessions() 使用的响应式会话筛选进行比较。完成的标准是:请求选择编号最小的响应式会话;当不存在此类会话时,仍保留服务器回退;验证忙碌和空闲的 R 会话。
由索引模型根据 Issue 内容生成。
描述
I just ran into a (simplified) situation where I had 2 R sessions running, both configured with mcp_session() via .Rprofile.
- Session 1), the first one to be connected with
mcp_session(), is running long-running code and has been / will be busy for hours - Session 2) is mostly idle
If I explicitly ask to list_r_sessions() and then select 2), the server runs fine. Otherwise, the request is automatically dispatched to 1), where it fails.
Notably, when I list_r_sessions(), 1) doesn't even show up—this makes sense to me and doesn't require any changes—but I think our default session should change from:
- Before: The lowest-numbered session (or the server itself if there is none), to
- After: The lowest-numbered session that is actually responsive, e.g. the smallest index that would appear in
list_r_session()if called (or the server itself if there is none)
- 主要语言
- R
- 星标
- 207
- 派生
- 24
- 平均合并
- 36 分钟
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
posit-dev/mcptools 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 20/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 5/5 一周以上 新手友好度 35/100
查看 posit-dev/mcptools 的全部 Issue
相似的 Issue
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts both未关闭area/ode-pde good first issue help wanted kind/contract severity/4-minor
难度 2/5 1-3 小时 新手友好度 78/100
Apich-Organization/rssn#383 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
PRL-PRG/r-compile-server#70 · 1 条评论 ·
-
dependencies docker enhancement
难度 2/5 1-3 小时 新手友好度 74/100
posit-dev/images-workbench#257 ·
维护者通常 1 天内回复
-
dependencies docker enhancement
难度 2/5 1-3 小时 新手友好度 72/100
posit-dev/images-package-manager#188 ·
维护者通常 1 天内回复
-
dependencies docker enhancement
难度 2/5 1-3 小时 新手友好度 68/100
posit-dev/images-connect#222 ·
维护者通常 1 天内回复