Skip to content
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

0.1.0b18版本 matcher执行时会阻塞全局 #74

Closed
XiaoQiu2451 opened this issue Oct 16, 2024 · 0 comments
Closed

0.1.0b18版本 matcher执行时会阻塞全局 #74

XiaoQiu2451 opened this issue Oct 16, 2024 · 0 comments

Comments

@XiaoQiu2451
Copy link

specs: Debian12 Python3.11
server location: Germany

问题:
在升级0.1.0b18版本后,机器人在执行matcher后不在接收新的event(包括inline事件等),直到当前matcher执行完毕后才处理下一个event。

代码(简单复现):
from nonebot.plugin import on_command import asyncio bar = on_command("test", priority=10) @bar.handle() async def handle_function(): await bar.send("10s后发信息哦") await asyncio.sleep(10) await bar.finish("喵!")

在0.1.0b18会存在上述问题,但是回滚到0.1.0b17则不会有上述问题。
已经尝试切换过dev prod,添加apiserver,问题依旧存在。

@XiaoQiu2451 XiaoQiu2451 changed the title 0.1.0b18版本不支持matcher并发 0.1.0b18版本 matcher执行时会阻塞全局 Oct 16, 2024
j1g5awi added a commit that referenced this issue Oct 27, 2024
@j1g5awi j1g5awi closed this as completed Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants