🐛 fix: 限制文件完成阶段的连续失败重试
* 保留处理中轮询,避免处理中响应重置失败计数导致无限重试 * 验证交替处理中及存储错误在四次失败后结束,保留手动重试能力
This commit is contained in:
1 parent
f7bae99fe4
commit
d03c4e1315
2 files changed
+13
-1
No files matched your search
@@ -11,7 +11,6 @@ export async function waitForUploadCompletion<T>(request: () => Promise<ApiRespo
|
||||
signal?.throwIfAborted()
|
||||
try {
|
||||
const response = await request()
|
||||
failures = 0
|
||||
if (response.code !== 202) return response
|
||||
if (!announced) { announced = true; onFinalizing?.() }
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user