- 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
28 lines
501 B
Python
28 lines
501 B
Python
"""定时任务模块 (M7)。
|
|
|
|
公共 API:
|
|
- run_pipeline: 串联执行 M1→M6 全链路
|
|
- run_step: 执行单个步骤
|
|
- StepResult / PipelineResult: 结果模型
|
|
"""
|
|
|
|
from .pipeline import (
|
|
DEFAULT_NEWS_STEPS,
|
|
STEP_COMMANDS,
|
|
STEP_TIMEOUTS,
|
|
PipelineResult,
|
|
StepResult,
|
|
run_pipeline,
|
|
run_step,
|
|
)
|
|
|
|
__all__ = [
|
|
"DEFAULT_NEWS_STEPS",
|
|
"STEP_COMMANDS",
|
|
"STEP_TIMEOUTS",
|
|
"PipelineResult",
|
|
"StepResult",
|
|
"run_pipeline",
|
|
"run_step",
|
|
]
|