08a0157c95
调度页执行周期可视化/单次执行/分类选机/推送源对齐;登录 IP 门控与无缝导航; 服务器批量后台任务、执行记录、凭据合并、各页激活刷新与错误提示修复。 Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
897 B
Markdown
30 lines
897 B
Markdown
# 2026-06-08 — 移除「每 N 秒」修复 roundtrip
|
|
|
|
## 摘要
|
|
|
|
审计发现「每 N 秒」保存为 `*/N * * * *` 后无法再识别为秒级周期,编辑时误显示为「每 N 分钟」。因 `schedule_runner` 本身 60 秒轮询,无法真秒级执行,故移除该选项,最短周期统一为「每 N 分钟」(≥1)。
|
|
|
|
## 动机
|
|
|
|
- 代码审计:second-n ↔ minute-n Cron 歧义,roundtrip 失败
|
|
- 与 runner 能力一致:最短有效间隔 1 分钟
|
|
|
|
## 涉及文件
|
|
|
|
- `frontend/src/utils/scheduleCycle.ts`
|
|
- `frontend/src/components/schedules/ScheduleCyclePicker.vue`
|
|
- `server/utils/schedule_cycle.py`
|
|
- `tests/test_schedule_cycle.py`
|
|
|
|
## 验证
|
|
|
|
```bash
|
|
pytest tests/test_schedule_cycle.py -q
|
|
cd frontend && npm run build
|
|
```
|
|
|
|
## 用户影响
|
|
|
|
- 已存 `*/N * * * *` 任务编辑时显示「每 N 分钟」(语义正确)
|
|
- 新建调度不再出现「每 N 秒」
|