fix(system): three next-runs, completed snapshot date, running mark #1

Merged
kairee merged 1 commits from auto/system-sched-status-6c into main 2026-11-02 09:34:41 +08:00

Summary

  • Split /system「预计下次运行」into three tasks: 咻咻满粉丝数更新 / 视频数据快照+UP信息 / 新视频搜索.
  • data_date and snapshot_days come only from fully completed video snapshot (snapshot:last_completed / snapshot:completed:*); mid-run ok=1 no longer advances homepage or system date.
  • Start of task writes task:running:* → UI shows「运行中」; finish clears it and records success/failure via _record_task. Failures keep prior successful data date and appear in system errors.
  • Next-run times are derived from last completion (no wall-clock skip while idle).

Test plan

  • uv run python tests/test_web_queries.py (incl. running display, no premature data_date, fail keeps date + failure record, three next-run fields)
  • uv run python tests/test_snapshot.py
  • Full offline tests/test_*.py suite
## Summary - Split /system「预计下次运行」into three tasks: 咻咻满粉丝数更新 / 视频数据快照+UP信息 / 新视频搜索. - `data_date` and `snapshot_days` come only from fully completed video snapshot (`snapshot:last_completed` / `snapshot:completed:*`); mid-run `ok=1` no longer advances homepage or system date. - Start of task writes `task:running:*` → UI shows「运行中」; finish clears it and records success/failure via `_record_task`. Failures keep prior successful data date and appear in system `errors`. - Next-run times are derived from last completion (no wall-clock skip while idle). ## Test plan - [x] `uv run python tests/test_web_queries.py` (incl. running display, no premature data_date, fail keeps date + failure record, three next-run fields) - [x] `uv run python tests/test_snapshot.py` - [x] Full offline `tests/test_*.py` suite
bot-ci Bot added 1 commit 2026-11-02 00:46:35 +08:00
Split /system schedule into fans / snapshot+UP / discovery next-runs.
Drive data_date and snapshot_days from fully completed video snapshots
only, keep prior success date on failure, show task failure records, and
mark in-progress tasks as 运行中 without wall-clock next-run jumps.
kairee merged commit 04716aec1b into main 2026-11-02 09:34:41 +08:00
kairee deleted branch auto/system-sched-status-6c 2026-11-02 09:35:37 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kcloud/re-xxm#1