fix: 修复补跑误含 cninfo 三步与时区不一致 (P1-2/P1-3)

- P1-2: 提取 DEFAULT_NEWS_STEPS(全链路去 report+cninfo),定时/补跑/默认三处统一;
  启动补跑不再误执行 cninfo 公告管道
- P1-3: 新增 scheduler/timeutil.py(调度时区统一入口,SCHEDULE_TZ 可覆盖,
  默认 Asia/Shanghai);run_scheduler 定时/补跑/--once、crawler 补跑保护、
  reporter 兜底日期全部改用调度时区,避免系统时区非上海时日期错位
- 新增 6 个测试;全量 282 passed
This commit is contained in:
2026-08-23 05:40:52 +08:00
parent 639d857ffb
commit 7b33182f67
7 changed files with 197 additions and 20 deletions
+2
View File
@@ -7,6 +7,7 @@
"""
from .pipeline import (
DEFAULT_NEWS_STEPS,
STEP_COMMANDS,
STEP_TIMEOUTS,
PipelineResult,
@@ -16,6 +17,7 @@ from .pipeline import (
)
__all__ = [
"DEFAULT_NEWS_STEPS",
"STEP_COMMANDS",
"STEP_TIMEOUTS",
"PipelineResult",