mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-23 21:18:09 +00:00
- 修正 AI 会话表初始化及异步数据库 URI 处理 - 新增全局 API 与 WS 聊天限流,健康检查豁免 - 修复忘记密码接口防用户枚举与参数校验 - 修复 SSE 推送数据重复编码问题 - 修复 Cron 表达式 Quartz 问号兼容 - 修复存储模块权限标识前缀 - 新增过期日志清理与任务错误中文提示
18 lines
651 B
JSON
18 lines
651 B
JSON
[
|
||
{
|
||
"name": "日志保留清理",
|
||
"code": "log_cleanup",
|
||
"jobstore": "default",
|
||
"executor": "threadpool",
|
||
"trigger": "cron",
|
||
"trigger_args": "0 0 3 * * ?",
|
||
"func": "def handler(**kwargs):\n import asyncio\n from app.modules.system.log.service import cleanup_expired_logs\n return asyncio.run(cleanup_expired_logs(days=int(kwargs.get(\"days\", 90))))",
|
||
"args": null,
|
||
"kwargs": "{\"days\": 90}",
|
||
"coalesce": true,
|
||
"max_instances": 1,
|
||
"status": 0,
|
||
"description": "每天 03:00 物理清理超过保留天数的操作日志与登录日志(默认保留 90 天,可改 kwargs.days)"
|
||
}
|
||
]
|