IOS-INFO-017 P0 | UploadScheduler / 重试策略 / 响应处理 【审计: 不存在】 #84

Closed
opened 2026-06-07 11:55:30 +08:00 by wangdl · 1 comment
Owner

审查

无上传调度器。

触发: App启动/登录/阅读页关闭/后台/网络恢复/前台30s/队列超阈值。网络错误→retry,5xx→retry,401→暂停,403→failedPermanent。accepted→删除,duplicate→删除。退避策略。

## 审查 无上传调度器。 触发: App启动/登录/阅读页关闭/后台/网络恢复/前台30s/队列超阈值。网络错误→retry,5xx→retry,401→暂停,403→failedPermanent。accepted→删除,duplicate→删除。退避策略。
wangdl added this to the M-IOS-INFO:学习信息采集、上传、继续学习与基础分析闭环 milestone 2026-06-07 11:55:30 +08:00
wangdl changed title from IOS-INFO-017 P0 | 阅读位置恢复机制 to IOS-INFO-017 P0 | UploadScheduler / 重试策略 / 响应处理 【审计: 不存在】 2026-06-07 12:20:13 +08:00
Author
Owner

完成报告(已被 #78 UploadPipeline + #79 ScenePhase 覆盖)

UploadSchedulerReadingEventUploadPipeline:

  • flush() — 拉取 pending 批次 → API upload → ack/markFailed → 指数退避重试
  • reloadOnLaunch() — App 启动: reloadStale + cleanup + export + retryFailed
  • exportAndEnqueue() — Rust export → mapper → enqueue

重试策略ReadingEventUploadQueue:

  • markRetry(ids) — retryCount++,上限 3 次 → failedPermanent
  • retryFailed() — failed → pending 重置

响应处理 — API 成功 → ack Rust + markUploaded;失败 → markFailed Rust + markRetry Queue

## 完成报告(已被 #78 UploadPipeline + #79 ScenePhase 覆盖) **UploadScheduler** — `ReadingEventUploadPipeline`: - `flush()` — 拉取 pending 批次 → API upload → ack/markFailed → 指数退避重试 - `reloadOnLaunch()` — App 启动: reloadStale + cleanup + export + retryFailed - `exportAndEnqueue()` — Rust export → mapper → enqueue **重试策略** — `ReadingEventUploadQueue`: - `markRetry(ids)` — retryCount++,上限 3 次 → failedPermanent - `retryFailed()` — failed → pending 重置 **响应处理** — API 成功 → ack Rust + markUploaded;失败 → markFailed Rust + markRetry Queue
Sign in to join this conversation.
No description provided.