From f6671650d63d46fbfcf0cd0c65b3623aeb30ef80 Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Sun, 14 Sep 2025 04:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Home?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Home.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Home.md b/Home.md index d800023..7ce4a10 100644 --- a/Home.md +++ b/Home.md @@ -230,17 +230,22 @@ scheduler.update_listen_data("on_config_changed", "dark_mode=true") ## 常见问题 **Q:任务函数执行失败了怎么办?** + A:任务状态会被标记为 `FAILED`。根据 `retry_count` 和你的逻辑,你可以选择重新发送该消息 **Q:如何查询队列中当前的任务数量** + A:使用 `scheduler.queue_operation.get_queue_length()`。 **Q:如何手动触发清理?** + A:可以调用 `scheduler.cleanup_scheduler.cleanup_expired_message()`,但通常清理调度器会自动处理。 *Q:编译 Rust 扩展时出错?* + A:确保你的 Rust 工具链是最新的 (`rustup update`)。在 Windows 上,你可能需要安装 Microsoft C++ Build Tools。 *Q:`destination 找不到对应的任务函数`?* + A:确保任务函数被正确装饰(`@TaskMounter.task`)并且其 `__name__` 与 `destination` 字符串完全一致。确保包含任务函数的模块在运行主程序前已被导入。