定时任务重复发送消息!!!
bot $time 今天 09:00 早报,到了9点群里就会收到一条早报消息。 当我用bot $time 每天 10:00 早报,到了10点,群里就会收到6条相同的早报消息。 我kill -9 cow项目,重新启动、或者我把timetask文件夹删了。依旧会出现上述问题。 我要怎么解决重复消息的问题呢?
找我吧,我给你解决这个问题。
找我吧,我给你解决这个问题。
怎么联系你呢。那个问题大概是什么造成的
和docker部署有关吗,还是说和检测时间有关?有同样的问题,求解决。
也遇到同样问题
和docker部署有关吗,还是说和检测时间有关?有同样的问题,求解决。
后面怎么解决的?
求解决的问题,我也遇见了
我后来也遇到了,这个问题出现的真是有点莫名其妙
你有解决方案嘛?
------------------ 原始邮件 ------------------ 发件人: "haikerapples/timetask" @.>; 发送时间: 2024年9月12日(星期四) 下午2:38 @.>; @.@.>; 主题: Re: [haikerapples/timetask] 定时任务重复发送消息!!! (Issue #56)
我后来也遇到了,这个问题出现的真是有点莫名其妙
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
我这边也出现好几次了, 还不能稳定复现, 这咋 debug
经过一番调查,结果是 chatgpt-on-wechat 和 timetask 本身都有问题,chatgpt-on-wechat 在 reloadp 或者 scanp 后会创建新的插件实例,但是因为插件实例内部的handler循环引用了自身,原本的插件实例永远不会被 gc 收集,所以每重载一次插件, timetask 就启动一个新线程,造成重复消费。
我创建了两个 PR: https://github.com/zhayujie/chatgpt-on-wechat/pull/2407 和 https://github.com/zhayujie/chatgpt-on-wechat/pull/2413 ,合并后可以解决插件实例不会被销毁的问题
另外可以试一下我写的定时任务插件,毕竟这个项目似乎不再维护了 https://github.com/ayasa520/TaskScheduler/
和docker部署有关吗,还是说和检测时间有关?有同样的问题,求解决。 https://github.com/haikerapples/timetask/issues/56#issuecomment-2519951763
也遇到同样问题
https://github.com/haikerapples/timetask/issues/56#issuecomment-2519951763
求解决的问题,我也遇见了
https://github.com/haikerapples/timetask/issues/56#issuecomment-2519951763
我后来也遇到了,这个问题出现的真是有点莫名其妙
https://github.com/haikerapples/timetask/issues/56#issuecomment-2519951763
你有解决方案嘛? … ------------------ 原始邮件 ------------------ 发件人: "haikerapples/timetask" @.>; 发送时间: 2024年9月12日(星期四) 下午2:38 @.>; @.@.>; 主题: Re: [haikerapples/timetask] 定时任务重复发送消息!!! (Issue #56) 我后来也遇到了,这个问题出现的真是有点莫名其妙 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
https://github.com/haikerapples/timetask/issues/56#issuecomment-2519951763