-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
railway部署,用什么命令行修改railway服务器的时区,谢谢 #51
Comments
#53 我加了一个时区偏移的配置,timezone_offset,你可以看下railway的服务器所在时区,然后对应配置这个就行了 |
我在-8区,直接在配置文件设置加一个,timezone_offset=-8就行吗?谢谢 |
配置你看我这个 pr 说明嘛,不过源仓库作者还没合并,你得用我那份代码配置才会生效 |
谢谢 |
可以执行任务了,但新问题BUG又来了。 大佬,你上面改了服务区时区的6个文件代码我测试也会出现我上面的的重复发图片 BUG?谢谢 |
如下DEBUG,我看了下它会在当前分钟的60S内触发7次早报回复。不知道还需要修改哪里?我用了ChatGPT修改如下提示,还是不行。 ChatGPT修改如下,不行 在你的代码中,可以在执行早报任务时,设置一个标记变量,比如hasExecutedMorningReport,当执行早报任务时,将这个标记设置为True。在下一次定时任务执行之前,先检查这个标记,如果hasExecutedMorningReport为True,则不再触发早报任务。 下面是一个示例修改的代码片段: DEBUG后台记录如下: context: Context(type=TEXT, content=$time 每天 04:30 早报 group[ai测试群], kwargs={'isgroup': False, 'msg': <channel.wechat.wechat_message.WechatMessage object at 0x7fe03ed655d0>, 'origin_ctype': <ContextType.TEXT: 1>, 'openai_api_key': None, 'gpt_model': None, 'session_id': '@47355317142', 'receiver': '@47355317142'}) Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:28:12 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:01 Mar 26 04:30:02 Mar 26 04:30:02 Mar 26 04:30:04 Mar 26 04:30:06 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:11 Mar 26 04:30:12 Mar 26 04:30:12 Mar 26 04:30:14 Mar 26 04:30:15 Mar 26 04:30:20 Mar 26 04:30:20 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 Mar 26 04:30:21 [INFO][2024-03-25 20:30:23][wechat_channel.py:230] - [WX] download image success, size=664832, img_url=https://file.alapi.cn/60s/202403261711385768.png [INFO][2024-03-25 20:30:25][wechat_channel.py:233] - [WX] sendImage url=https://file.alapi.cn/60s/202403261711385768.png, receiver=@@42acd7d0043e [timetask][定时检测]:当前时刻 - 存在定时任务, 执行消费 当前时刻任务 😄执行定时任务:【HKIapvb6】,任务详情:每天 04:30:00 早报 group[ai测试群] 触发了定时任务:HKIapvb6 , 任务详情:早报 [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin GODCMD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][godcmd.py:220] - [Godcmd] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin KEYWORD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][keyword.py:52] - [keyword] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin KEYWORD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][keyword.py:52] - [keyword] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin TIMETASK triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin REPLICATE triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin REPLICATE triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin TOOL triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][tool.py:67] - [tool] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin TOOL triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][tool.py:67] - [tool] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:30][plugin_manager.py:189] - Plugin APILOT triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:30][Apilot.py:51] - [Apilot] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:31][plugin_manager.py:194] - Plugin APILOT breaked event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:31][wechat_channel.py:223] - [WX] start download image, img_url=https://file.alapi.cn/60s/202403261711385768.png [INFO][2024-03-25 20:30:32][wechat_channel.py:230] - [WX] download image success, size=664832, img_url=https://file.alapi.cn/60s/202403261711385768.png [INFO][2024-03-25 20:30:34][wechat_channel.py:233] - [WX] sendImage url=https://file.alapi.cn/60s/202403261711385768.png, receiver=@@42acd7d0043e [timetask][定时检测]:当前时刻 - 存在定时任务, 执行消费 当前时刻任务 😄执行定时任务:【HKIapvb6】,任务详情:每天 04:30:00 早报 group[ai测试群] 触发了定时任务:HKIapvb6 , 任务详情:早报 [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin GODCMD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][godcmd.py:220] - [Godcmd] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin KEYWORD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][keyword.py:52] - [keyword] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin KEYWORD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][keyword.py:52] - [keyword] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin TIMETASK triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin REPLICATE triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin REPLICATE triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin TOOL triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][tool.py:67] - [tool] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin TOOL triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][tool.py:67] - [tool] on_handle_context. content: 早报 [DEBUG][2024-03-25 20:30:39][plugin_manager.py:189] - Plugin APILOT triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-03-25 20:30:39][Apilot.py:51] - [Apilot] on_handle_context. content: 早报 Mar 26 04:30:40 Mar 26 04:30:40 Mar 26 04:30:41 Mar 26 04:30:43 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:48 Mar 26 04:30:49 Mar 26 04:30:49 Mar 26 04:30:51 Mar 26 04:30:52 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:57 Mar 26 04:30:58 Mar 26 04:30:58 Mar 26 04:31:00 Mar 26 04:31:01 |
感觉可能是别的插件的问题,建议先只用定时任务插件排查原因(只设置最简单的文字提醒) |
试了不行,另外大佬我用你的PR原代码没修改,同样会出现错误,任务列表一开始是有待执行任务。过了时间没有待执行的任务。也没有任何输出。微信也没有任何反应。你这边不修改我截图里的那2段代码,能输出和微信显示结果吗? 我看了下debug除了今天+事件不会触发,只要加上每天/工作日/每周几+事件,到时间群会发出一样的6-7个一样的早报图片(debug显示1分钟60S内会不断触发约6-7次同样早报插件发出图片)。每天+等多日发的指令 逻辑应该有问题,就没找到修改的地方 |
我这边不管是本地还是服务器部署都正常执行,你尽量控制变量法排除其他因素,因为我也不知道你什么坏境用了哪些插件 |
谢谢你的PR,我在检查下看,目前主要每天指令有bug重复发多个早报图片, |
有同样的问题,不知道是不是和docker部署有关?求解决 |
railway部署,用什么命令行修改railway服务器的时区,谢谢
The text was updated successfully, but these errors were encountered: