Skip to content

修复: 上传操作级重试,解决远端临时故障导致自动备份失败#29

Merged
Awuqing merged 1 commit intomainfrom
fix/upload-retry
Apr 1, 2026
Merged

修复: 上传操作级重试,解决远端临时故障导致自动备份失败#29
Awuqing merged 1 commit intomainfrom
fix/upload-retry

Conversation

@Awuqing
Copy link
Copy Markdown
Owner

@Awuqing Awuqing commented Apr 1, 2026

在 provider.Upload 外层增加最多 3 次重试(指数退避),覆盖 Google Drive 502/timeout 等场景

问题:rclone 底层重试只覆盖单个 HTTP 请求,但 Google API 的 502/timeout
等临时故障会导致整个上传操作失败,自动触发的备份任务连续失败。

修复:在 provider.Upload 外层增加操作级重试(最多 3 次,指数退避 10s/40s/90s),
每次重试重新打开文件并重建 reader 链。重试过程通过日志流实时反馈。
@Awuqing Awuqing merged commit 82b6f74 into main Apr 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant