PP-01: retry_dead_letters 已实现但全仓零调用,业务关键事件瞬时故障即永久 滞留死信表。tasks.rs 加 start_retry_dead_letters(每小时,最大重试 5 次) + main.rs 注册。同时落盘 feat 进行中的 cron_heartbeat 就绪门禁 (touch_heartbeat + 给 cleanup/metrics 任务加 heartbeat 参数)。 PP-05b: AnalysisQueue "只入队不消费"(两个入队源 claim_next 零调用), 违反"每个事件必须有消费者"铁律。新增 analysis_worker.rs 后台消费者: claim_next → analysis_type 路由 → AnalysisService → mark_completed/ mark_failed。MVP 打通 trend 链路,lab_report/dialysis_risk 暂 skip (回滚 pending,无假数据)。启动遵循 start_auto_analysis 模式(main.rs)。
27 lines
549 B
Rust
27 lines
549 B
Rust
pub mod analysis;
|
|
pub mod analysis_queue;
|
|
pub mod analysis_worker;
|
|
pub mod auto_analysis;
|
|
pub mod cache;
|
|
pub mod chat_message;
|
|
pub mod chat_session;
|
|
pub mod comparison;
|
|
pub mod cost;
|
|
pub mod dialysis_risk_scorer;
|
|
pub mod document;
|
|
pub mod embedding;
|
|
pub mod feature_flag_service;
|
|
pub mod insight_service;
|
|
pub mod knowledge;
|
|
pub mod knowledge_v2;
|
|
pub mod local_rules;
|
|
pub mod output_parser;
|
|
pub mod post_process;
|
|
pub mod prompt;
|
|
pub mod quota;
|
|
pub mod reanalysis;
|
|
pub mod risk_service;
|
|
pub mod suggestion;
|
|
pub mod suggestion_feedback;
|
|
pub mod usage;
|