Repository navigation
feat: record perf metrics when async tasks reach terminal status - #7481
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe change adds terminal task performance metrics and centralizes terminal finalization in ChangesTerminal task metrics
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant TaskPolling
participant finalizeTerminalTask
participant RecordTaskResult
participant Billing
TaskPolling->>finalizeTerminalTask: finalize terminal task
finalizeTerminalTask->>RecordTaskResult: record terminal metrics
finalizeTerminalTask->>Billing: settle billing
finalizeTerminalTask->>TaskPolling: apply failure refund fallback when required
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit records each task’s final beat Comment |
…ntumNous#7481) (cherry picked from commit 3abbb81)
视频任务监控状态条显示
🚀 变更类型 / Type of change
📝 变更描述 / Description
模型广场的状态条只在同步 relay 里采样(RecordRelayResult),异步任务(视频/音乐等)从不采样,任务计费模型的状态条永远是灰的。
本 PR 在任务终态补上采样:
范围取舍:提交阶段失败不采样(多为业务拒绝,零样本显示灰色"无数据"比假数据诚实);提交即终态的 immediate 路径与超时清扫本次不动。前端零改动,卡片有样本后自动出格子。
📸 运行证明 / Proof of Work
✅ 提交前检查项 / Checklist
New feature,我已关联对应 Issue;若尚无 Issue,我已先自行创建。go build通过或测试通过,不视为有效证明。