Files
admin e6956aa001 Initial commit: TaskPool React panel
- React frontend with route-level code splitting
- Backend rebranded from Baihu to TaskPool
- DB brand migration script and local compatibility
2026-07-26 08:43:52 +08:00

25 lines
1.2 KiB
Markdown
Raw Permalink 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.
# 执行历史
执行历史详细记录了面板中所有任务的运行状态、实时日志及耗时统计。
## 日志详情
- **实时日志推流**:即使任务仍在运行,也可以在历史日志详情页实时看到程序的控制台输出(stdout/stderr)。
- **历史归档**:系统默认保留最近一段时间的任务运行快照。
- **状态统计**
- `SUCCESS`:任务按计划成功运行并返回正常退出代码。
- `FAILURE`:脚本运行时报错或程序异常终止。
- `TIMEOUT`:任务执行超出了设定的最大运行时间,由系统强制中止并标记为超时。
## 日志管理
- **搜索与过滤**:支持通过 `任务名称``脚本文件名``状态` 快速检索历史。
- **自动清理策略**
- **最大保留份数**:支持在系统设置中配置每个任务保留的历史日志最大数量。
- **日志滚动更新**:当产生新日志且超过最大份数时,最旧的记录将被自动清除,确保存储空间的动态平衡。
## 执行耗时
- **精准计时**:精确统计每次任务执行从启动到退出的全周期耗时。
- **性能分析**:通过历史耗时数据对比,可辅助用户排查脚本是否出现了性能退化。