Files
awoooi/apps/api
OG T 4b3fdd82f9
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
fix(api): incidents list 不再同步等待 AI 決策 (效能修復)
問題: GET /api/v1/incidents 對每個 incident await AI 分析 (120-180s)
      多個活躍 incident 時 timeout 乘積爆炸 → 前端完全無法載入

修復:
- list endpoint 只查 Redis 已快取的決策 token (立即返回)
- 無快取時回 decision=null,背景 fire-and-forget 觸發 AI
- 前端對有興趣的 incident 再 GET 單筆端點取得決策結果

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 10:49:30 +08:00
..