Files
FastapiAdmin/backend/sql/task_cornjob_node.json
T
zhangtao a8d29d4ab4 fix: 修复多项后端缺陷并加固安全与限流
- 修正 AI 会话表初始化及异步数据库 URI 处理
- 新增全局 API 与 WS 聊天限流,健康检查豁免
- 修复忘记密码接口防用户枚举与参数校验
- 修复 SSE 推送数据重复编码问题
- 修复 Cron 表达式 Quartz 问号兼容
- 修复存储模块权限标识前缀
- 新增过期日志清理与任务错误中文提示
2026-09-07 00:08:00 +08:00

18 lines
651 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[
{
"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"
}
]