Comments (17)
贡献者里没有你,应该是rebase merge的问题。我手动又强推了一下,有了。
from rust_proc_qq.
这是个很好的提议。建议和module类似可以直接设置并使用。我很乐意接收这个想法。
需要注意以下。我刚提了一个PR,改动比较大。#36
from rust_proc_qq.
如果可以的话merge以下master之后进行PR。
from rust_proc_qq.
如果可以的话merge以下master之后进行PR。
好的
from rust_proc_qq.
我先尝试改一下你的代码,比如
jobs_scheduler
放在client里面,不需要建立多个。- 让handler返回result,这样用起来方便一起
- 或者在
clientBuilder::build
的时候就执行一些init的动作,而不是推迟到run。
遇到问题我会推送到dev给你看一下
from rust_proc_qq.
我先尝试改一下你的代码,比如
jobs_scheduler
放在client里面,不需要建立多个。- 让handler返回result,这样用起来方便一起
- 或者在
clientBuilder::build
的时候就执行一些init的动作,而不是推迟到run。遇到问题我会推送到dev给你看一下
好
from rust_proc_qq.
我把我刚才的想法加了进去,我只改了 proc_qq 没有改 codegen.
jobs_scheduler.start() 这个名字我看你用tokio::spawn
调用,start看起来是启动的意思。我用了一个mutex包裹jobs_scheduler不知道会不会有问题
from rust_proc_qq.
我的想法是一开始就设置好任务,然后一起启停,
from rust_proc_qq.
如果按照这个思路改 scheduler
跟module的思路就比较一致了。 codegen也类似
from rust_proc_qq.
你可以试一下有没有问题或者补充其他的,能用的话我可以提交到master了
from rust_proc_qq.
我试了一下,当shutdown()
之后,再次start()
就会报错了,JobScheduler
需要重新初始化,添加任务才行
from rust_proc_qq.
我试了一下,当
shutdown()
之后,再次start()
就会报错了,JobScheduler
需要重新初始化,添加任务才行
我改一下
from rust_proc_qq.
改好了
from rust_proc_qq.
没问题了,可以加个Module
和Scheduler
添加的时候的日志吗
from rust_proc_qq.
调用的时候?我写todo的时候吗?文档还需要改一改
from rust_proc_qq.
调用的时候?我写todo的时候吗?文档还需要改一改
这种
加了日志好观察模块是否加载.
from rust_proc_qq.
调用的时候?我写todo的时候吗?文档还需要改一改
这种 加了日志好观察模块是否加载.
我把我的定时任务的代码提交到master了。增加了在编译时校验cron是否正确。
builder::build
里面加上tracing::debug
? 如果是的话,你可以pr一下。
from rust_proc_qq.
Related Issues (20)
- module添加方式 HOT 2
- 登录后怎么保存token HOT 2
- 使用正则或其他对event匹配 HOT 50
- 用 #[impl(ident)] 生成 self.fn_name, 解决生命周期问题
- 能提供个部署方案吗,比如docker HOT 1
- 教学视频,文档 HOT 1
- [BUG][Request not implement]使用短信解锁设备锁无法使用
- 无法登录 HOT 13
- [功能] 自定义处理ticket
- [功能] modules可为默认(空) HOT 1
- bot_command 功能设为 feature? HOT 3
- [功能] BotCommand匹配枚举值 HOT 1
- 可选的短信或者设备锁验证 HOT 1
- [功能]bot_command模糊匹配帮助 HOT 7
- 恢复会话失败回调 HOT 10
- 让每种配置可以使用回调函数解决,例如设备所验证方式,扫码还是密码登录,扫码的方式,回调扫码,让框架更灵活 HOT 1
- 无法扫码登录 HOT 1
- start(self) 改成 Arc<Client> 以便定时任务使用?
- anyhow报错问题解决办法
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust_proc_qq.