[Bug]未来任务延迟一段时间才执行
What happened / 发生了什么
未来任务延迟一段时间才执行,追踪里面能看到调用了Agent
只启动了fetch工具,没有调用大模型
Reproduce / 如何复现?
在聊天框内输入 在https://grad.qdu.edu.cn/yzb/sy/sszxtz.htm上查询硕士最新通知,只显示通知列表的前三条,在每天9,12,15,18,21点时发给我 ,在未来任务里面可以看见所设置的任务,但是到时间没有完全执行
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
v4.26.4 docker部署 使用官方命令
sudo docker run -itd -p 6185:6185 -p 6199:6199 -v $PWD/data:/AstrBot/data -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --name astrbot soulter/astrbot:latest
fetch工具使用的pip安装的mcp_server_fetch
模型:deepseek v4 消息平台:个人微信
OS
Linux
Logs / 报错日志
[2026-07-04 21:00:02.764] [Core]
[INFO]
[runners.tool_loop_agent_runner:985]: Agent 使用工具: ['fetch']
[2026-07-04 21:00:02.765] [Core]
[INFO]
[runners.tool_loop_agent_runner:1038]: 使用工具:fetch,参数:{'url': 'https://grad.qdu.edu.cn/yzb/sy/sszxtz.htm', 'raw': True}
[2026-07-04 21:00:03.355] [Core]
[INFO]
[runners.tool_loop_agent_runner:1235]: Tool fetch Result: Content type text/html cannot be simplified to markdown, but here is the raw content:
Contents of https://grad.qdu.edu.cn/yzb/sy/sszxtz.htm:
<title>硕士最新通知-青岛大学研究生院</title><META Name="keywords" Content="青岛大学研究生院,硕士最新通知" />
<link href="../../zhaosheng/images/info.css" rel="stylesheet" type="text/css">
<link href="../../zhaosheng/images/common.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function _nl_ys_check(){
var keyword = document.getElementById('showkeycode1076437').value;
if(keyword==null||keyword==""){
alert("请输入你要检索的内容!");
return false;
}
if(window.toFF==1)
{
document.getElementById("lucenenewssearchkey1076437").value = Simplized(keyword );
}else
{
document.getElementById("lucenenewssearchkey1076437").value = keyword;
}
var base64 = new Base64();
document.getElementById("lucenenewssearchkey1076437").value = base64.encode(document.getElementById("lucenenewssearchkey1076437").value);
new VsbFormFunc().disableAutoEnable(document.getElementById("showkeycode1076437"));
return true;
}
</div>
</div>
<div class="subColumnBar">
<div class="columnTitle"><div class="wow"><span>
硕士最新通知
<
fetch Result: Content type text/html cannot be simplified to markdown, but here is the raw content:
Contents of https://grad.qdu.edu.cn/yzb/sy/sszxtz.htm:
script language="javascript" src="/system/resource/js/centerCutImg.js">
- 关于2026级硕士生录取手续相关问题的说明 2026-06-03
- 关于2026年拟录取硕士研究生调档函下载的通知 2026-05-28
- 关于2026年拟录取硕士研究生调档函发放及修改邮寄地址的通知 2026-05-19
- 青岛大学2026年硕士研究生拟录取名单公示(公示期已满) 2026-05-19
- 关于部分专业继续接收调剂的通知 2026-04-13
- 青岛大学2026年硕士研究生招生考试网络复试温馨提示 2026-04-07
- 青岛大学2026年硕士研究生调剂公告 2026-04-03
- 青岛大学各招生学院2026年硕士研究生调剂复试方案 2026-04-01
- 青岛大学2026年硕士研究生招生考试立功表彰免初试考生复试通知 2026-03-24
- 青岛大学各招生学院2026年硕士研究生复试方案 2026-03-23
<div class="navigation">
<div class="page">
<link rel="stylesheet" Content-type="text/css" href="/system/resource/css/pagedown/sys.css"><div class="pb_sys_common pb_sys_normal pb_sys_style1" style="margin-top:10px;text-align:center;"><span class="p_pages"><span class="p_first_d p_fun_d">首页</span><span class="p_prev_d p_fun_d">上页</span><span class="p_no_d">1</span><span class="p_no"><a href="sszxtz/56.htm">2</a></span><span class="p_no"><a href="sszxtz/55.htm">3</a></span><span class="p_no"><a href="sszxtz/54.htm">4</a></span><span class="p_no"><a href="sszxtz/53.htm">5</a></span><span class="p_dot">...</span><span class="p_no"><a href="sszxtz/1.htm">57</a></span><span class="p_next p_fun"><a href="sszxtz/56.htm">下页</a></span><span class="p_last p_fun"><a href="sszxtz/1.htm">尾页</a></span></span></div>
</div>
<div class="clear"></div>
</div><script>_showDynClickBatch(['dynclicks_u3_4517','dynclicks_u3_4508','dynclicks_u3_4500','dynclicks_u3_4499','dynclicks_u3_4474','dynclicks_u3_4472','dynclicks_u3_4471','dynclicks_u3_4468','dynclicks_u3_4465','dynclicks_u3_4464'],[4517,4508,4500,4499,4474,4472,4471,4468,4465,4464],"wbnews", 1918568246)</script></div>
</div>
</div>
</div>
</div>
<td>
<div>
<span class="csubject"></span>
<span></span>
<a href="https://www.chsi.com.cn/" target="_blank" class="" title="">
中国高等教育学生信息网(学信网)
send_message_to_user Result: Message sent to session weixin_personal_htdg:FriendMessage:[email protected]
Are you willing to submit a PR? / 你愿意提交 PR 吗?
- [ ] Yes!
Code of Conduct
- [x] I have read and agree to abide by the project's Code of Conduct。
这种情况貌似只有在未来任务里面才会发生,在实时的网页或者个人微信龙虾聊天中不会出现这种情况
这符合已知的行为差异。定时任务(未来任务)与实时聊天走的是不同的执行路径:
- 实时聊天:经过完整的 9 阶段消息处理 pipeline,使用 streaming 异步响应 [1]
- 定时任务:完全绕过 pipeline,直接通过
CronJobManager._woke_main_agent()调用 Agent,使用step_until_done(30)阻塞式循环,且streaming_response=False[2]
已确认的定时任务相关 bug 包括:主模型失败时无法自动切换到备用模型 [3]。这恰好能解释你的现象 — 实时聊天如果遇到 DeepSeek 超时会快速 fallback,而定时任务可能卡在重试主模型上,导致出现那 11 分钟的延迟。
如果你配置了备用模型(fallback provider),可以确认一下配置是否正确填写了模型 ID,因为定时任务路径可能因为 fallback 列表为空而无法切换。
To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.
这种情况貌似只有在未来任务里面才会发生,在实时的网页或者个人微信龙虾聊天中不会出现这种情况
我的个人微信龙虾聊天中也会出现
这种情况貌似只有在未来任务里面才会发生,在实时的网页或者个人微信龙虾聊天中不会出现这种情况
我的个人微信龙虾聊天中也会出现
是在实时对话中吗
这种情况貌似只有在未来任务里面才会发生,在实时的网页或者个人微信龙虾聊天中不会出现这种情况
我的个人微信龙虾聊天中也会出现
是在实时对话中吗
是的
这种情况貌似只有在未来任务里面才会发生,在实时的网页或者个人微信龙虾聊天中不会出现这种情况
我的个人微信龙虾聊天中也会出现
是在实时对话中吗
是的
那就只能跪求大佬们解决了
确实有这种情况。我定在每天10点的未来任务,往往在10:11左右才开始工作,发起第一次LLM请求。
这种情况出现的频率大吗?
这种情况出现的频率大吗?
稳定触发
这种情况出现的频率大吗?
每次都是这样 (linux uv部署,最新版本)
这种情况出现的频率大吗?
每次都是这样 (linux uv部署,最新版本)
linux docker,接的个人微信,
大佬们都是接的个人微信吗
我接的QQ个人号,延迟跟你们差不多,都是差10-11分钟,看追踪就是晚10或11分钟才开始工作。不过我是在未来任务里手动设定的任务