diff --git a/internal/functions/panupload/upload_task_unit.go b/internal/functions/panupload/upload_task_unit.go index 50841d3..d6807c2 100644 --- a/internal/functions/panupload/upload_task_unit.go +++ b/internal/functions/panupload/upload_task_unit.go @@ -431,6 +431,11 @@ StepUploadPrepareUpload: if apierr != nil { result.Err = apierr result.ResultMessage = "创建上传任务失败:" + apierr.Error() + if apierr.Code == apierror.ApiCodeTooManyRequests || apierr.Code == apierror.ApiCodeBadGateway { + logger.Verboseln("create upload file error: " + result.ResultMessage) + // 重试 + result.NeedRetry = true + } return }