mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
添加腾讯云错误重试代码
This commit is contained in:
@@ -99,8 +99,8 @@ func _jsonRequest(client *common.Client, domain string, version string, apiName
|
||||
break
|
||||
}
|
||||
needRetry := false
|
||||
for _, msg := range []string{"EOF", "TLS handshake timeout", "Code=InternalError"} {
|
||||
if strings.Index(err.Error(), msg) > 0 {
|
||||
for _, msg := range []string{"EOF", "TLS handshake timeout", "Code=InternalError", "retry later", "Code=MutexOperation.TaskRunning"} {
|
||||
if strings.Contains(err.Error(), msg) {
|
||||
needRetry = true
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user