zhenxun_bot/zhenxun/builtin_plugins
Rumio be86e0bb7f
Some checks are pending
检查bot是否运行正常 / bot check (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
♻️ refactor(scheduler): 重构定时任务系统并增强功能 (#2009)
* ♻️ refactor(scheduler): 重构定时任务系统并增强功能

- 【模型重命名】将 `ScheduleInfo` 模型及其数据库表重命名为 `ScheduledJob`,以提高语义清晰度。
- 【触发器抽象】引入 `Trigger` 工厂类,提供类型安全的 Cron、Interval 和 Date 触发器配置。
- 【执行策略】新增 `ExecutionPolicy` 模型,允许为定时任务定义重试策略、延迟、异常类型以及成功/失败回调。
- 【任务执行】重构任务执行逻辑,支持 NoneBot 的依赖注入,并根据 `ExecutionPolicy` 处理任务的重试和回调。
- 【临时任务】增加声明式和编程式的临时任务调度能力,支持非持久化任务在运行时动态创建和执行。
- 【管理命令】更新定时任务管理命令 (`schedule_admin`),使其适配新的 `ScheduledJob` 模型和参数验证逻辑。
- 【展示优化】改进定时任务列表和状态展示,使用新的触发器格式化逻辑和参数模型信息。
- 【重试装饰器】为 `Retry.api` 装饰器添加 `on_success` 回调,允许在任务成功执行后触发额外操作。

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-06 09:02:23 +08:00
..
admin feat(ban): 在调用ban列表时主动删除过期数据 (#1997) 2025-08-05 19:12:15 +08:00
auto_update 支持git更新(github与aliyun codeup),插件商店支持aliyun codeup (#1999) 2025-08-05 17:49:23 +08:00
chat_history 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
check 🚨 Add specific ignore items in pyright ignore 2025-01-10 12:19:11 +08:00
help 增强权限检查,更新请求管理命令和数据库配置逻辑 (#2011) 2025-08-06 09:02:07 +08:00
hooks 支持git更新(github与aliyun codeup),插件商店支持aliyun codeup (#1999) 2025-08-05 17:49:23 +08:00
info 新增好感度/金币设置和详细帮助 (#1831) 2025-01-10 18:39:23 +08:00
init 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
llm_manager ♻️ refactor!: 重构LLM服务架构并统一Pydantic兼容性处理 (#2002) 2025-08-04 23:36:12 +08:00
mahiro_bank 添加真寻银行 2025-05-26 10:55:30 +08:00
platform 添加bot画像 2025-07-16 02:51:06 +08:00
plugin_store 支持git更新(github与aliyun codeup),插件商店支持aliyun codeup (#1999) 2025-08-05 17:49:23 +08:00
restart Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
scheduler Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
scheduler_admin ♻️ refactor(scheduler): 重构定时任务系统并增强功能 (#2009) 2025-08-06 09:02:23 +08:00
shop 添加bot画像 2025-07-16 02:51:06 +08:00
sign_in 首次启动时提供使用web ui方式完全配置 (#1870) 2025-06-16 09:11:41 +08:00
statistics feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
superuser 增强权限检查,更新请求管理命令和数据库配置逻辑 (#2011) 2025-08-06 09:02:07 +08:00
web_ui 支持git更新(github与aliyun codeup),插件商店支持aliyun codeup (#1999) 2025-08-05 17:49:23 +08:00
__init__.py 支持git更新(github与aliyun codeup),插件商店支持aliyun codeup (#1999) 2025-08-05 17:49:23 +08:00
about.py 🐛 修复群被动开关 2025-04-17 16:58:45 +08:00
bot_profile.py 添加bot画像 2025-07-16 02:51:06 +08:00
catchphrase.py Develop: 完全使用 ruff 替代 isort 与 black (#1757) 2024-12-10 19:49:11 +08:00
help_help.py 引用消息同意好友/群组请求 (#1902) 2025-06-09 14:39:28 +08:00
nickname.py feat(admin): 增加封禁用户理由并优化相关逻辑 (#1992) 2025-07-29 17:22:27 +08:00
record_request.py 引用消息同意好友/群组请求 (#1902) 2025-06-09 14:39:28 +08:00
withdraw.py 新增好感度/金币设置和详细帮助 (#1831) 2025-01-10 18:39:23 +08:00