[BUG] A scheduled run whose prompt was not accepted stays RUNNING until its deadline and is never resent
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 56/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go
调研方向
Start by tracing reconcile, ClaimScheduledRunDispatch, and SendStreamingMessage, then inspect the tick attempt context and the execution state transitions. Check how ErrSendNotAccepted is handled and whether releasing the dispatch claim or retaining PENDING is supported. Done when a refused send is retried or fails visibly, and the execution no longer stays RUNNING without a task ID until timeout.
由索引模型根据 Issue 内容生成。
描述
What happens
reconcile calls ClaimScheduledRunDispatch and sets the execution to RUNNING before SendStreamingMessage. If the send then fails with input was not accepted; retry after the session becomes available (ErrSendNotAccepted), the execution keeps state RUNNING with no task ID. On the next reconcile the branch
if execution.GetTaskId() != "" || execution.GetState() == ...RUNNING {
return nil
}
returns early, so the prompt is never sent again. The execution stays running until executionTimeout (4 h for us) and then times out. Nothing reports the failure except one controller log line:
level=ERROR msg="failed to advance scheduled execution" execution_id=... error="input was not accepted; retry after the session becomes available"
How we hit it (Substrate gVisor workers):
- The attempt context is 10 s (
context.WithTimeout(ctx, 10*time.Second)intick). On a worker that hasn't cached the agent image yet, the restore takes longer than that (an image pull of 35 s for us), so the first attempt is cancelled mid-start. The next attempt finds the session not yet available, and the send is refused. - The same thing happens when Substrate refuses the actor ("no worker has room for the actor") and the session becomes available later.
Expected
An error that says the input was not accepted means no work was started, so resending can't duplicate native work. The controller should release the dispatch claim (or keep the execution PENDING) and retry until the deadline. Alternatively, it should fail the execution with that reason so the failure is visible at once.
Workaround
Deleting the session marks the execution FAILED ("Session was deleted"). The schedule then has to be triggered again by hand.
- 主要语言
- Go
- 星标
- 4.5k
- 派生
- 937
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 150
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kagent-dev/kagent 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
kagent-dev/kagent#3792 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
kagent-dev/kagent#3790 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
kagent-dev/kagent#3789 ·
维护者通常 1 天内回复
-
[BUG] A2A lookups by task or context ID reveal whether another user's resource exists可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
kagent-dev/kagent#3787 ·
维护者通常 1 天内回复
-
[BUG] Python memory summarization fails for Gemini models: the request has no model name可能已有人在做 @BahaaMattar 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
kagent-dev/kagent#3710 ·
维护者通常 1 天内回复
查看 kagent-dev/kagent 的全部 Issue
相似的 Issue
-
[bug] Explorer trims leading spaces on file names可能已有人在做 @unshade 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
mickael-kerjean/filestash#1033 · 1 条评论 ·
-
Update Tailscale dependency for Android cgo fallback fix可能已有人在做 @lozbrown 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
[BUG] HTTP remote call timeouts can be returned as 500可能已有人在做 @XnLemon 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
apache/dubbo-go-pixiu#1096 ·
维护者通常 1 天内回复
-
conversation: ConverseAlpha1 and ConverseAlpha2 panic on empty choices or nil function call and return misleading error on scrubber failure可能已有人在做 @patelshivani2283-lab 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复