From 6a7c12b02b2c18bb53fd4b3dc5098b4409ab171e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 5 Dec 2018 15:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=85=BE=E8=AE=AF=E4=BA=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=87=8D=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/util/qcloud/qcloud.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/qcloud/qcloud.go b/pkg/util/qcloud/qcloud.go index 14d6c73239..f491a3c797 100644 --- a/pkg/util/qcloud/qcloud.go +++ b/pkg/util/qcloud/qcloud.go @@ -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 }