更新 Home
parent
b183c195e9
commit
f6671650d6
5
Home.md
5
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` 字符串完全一致。确保包含任务函数的模块在运行主程序前已被导入。
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user