Implement Ticket 01 of intelligent eval cron pool architecture (ADR-0007): - Add 4 new tables: task_queue, cron_pool, config_snapshots, decision_logs - Implement task enqueueing logic with priority calculation - Implement task assignment and completion APIs - Add unit tests (9) and integration tests (7) - Update CONTEXT.md with new vocabulary - Add ADR-0007 documenting cron pool architecture decision All 760 tests passing.
20 lines
1.0 KiB
Markdown
20 lines
1.0 KiB
Markdown
# 10 — Cron 池监控页面(前端)
|
||
|
||
**What to build:** 创建独立的「Cron 池监控」页面,显示池状态、任务队列、cron 列表、任务历史。
|
||
|
||
**Blocked by:** 07 — 监控和告警
|
||
|
||
**Status:** ready-for-agent
|
||
|
||
- [ ] 创建「Cron 池监控」页面(独立页面,不在评估详情页)
|
||
- [ ] 实现池状态卡片(total/idle/busy/stuck)
|
||
- [ ] 实现任务队列列表(pending/assigned/completed,支持筛选)
|
||
- [ ] 实现 cron 列表(ID、状态、当前任务、最后活跃时间、完成任务数)
|
||
- [ ] 实现任务历史列表(完成时间、成功率、平均处理时间)
|
||
- [ ] 实现告警历史列表(时间、级别、消息)
|
||
- [ ] 实现实时刷新(每 5 秒轮询)
|
||
- [ ] 实现手动扩缩容按钮(调用 `POST /api/openclaw/cron-pool/scale`)
|
||
- [ ] 前端类型检查(`tsc --noEmit`)
|
||
- [ ] 端到端测试:在 UI 上实时看到池状态和任务执行情况
|
||
- [ ] **可演示**:在 UI 上实时看到池状态和任务执行情况,可以手动扩缩容
|