Skip to content

[Bug]未来任务执行不稳定 #9477

Description

@yasaorder

What happened / 发生了什么

astrbot的定时任务触发不稳定,我有好几个任务都没有按时触发发送消息,我使用的是个人微信clawbot。

Reproduce / 如何复现?

使用ai排查是因为weixin_oc 适配器的服务端 session 会间歇性断开,报 ret=-2, errmsg=prepare failed。有时它能自己恢复(7/30 下午),更多时候需要你在微信上给 clawbot 发一条消息来重新激活。

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

v4.26.5,linux服务器部署,opencode的api,个人微信clawbot

OS

Windows

Logs / 报错日志

weixin_oc(weixin_personal_tcby): sendmessage failed for o9cq800jgITrB3TJZq2-TRXlO25I@im.wechat:
ret=-2, errcode=0, errmsg=prepare failed

RuntimeError: weixin_oc(weixin_personal_tcby, target_user=...) failed to send 1 message segment(s)

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions