From 705afead2bedb36229039fab836daf81a6f43294 Mon Sep 17 00:00:00 2001 From: tzwang Date: Wed, 22 May 2024 10:08:31 +0800 Subject: [PATCH] fix LOG bugs Former-commit-id: 71434c3bafcfa2653462acb43ed63e0dcb6a2ddf --- api/internal/storeLink/shuguangai.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/internal/storeLink/shuguangai.go b/api/internal/storeLink/shuguangai.go index 2aa2a68c..03cb8928 100644 --- a/api/internal/storeLink/shuguangai.go +++ b/api/internal/storeLink/shuguangai.go @@ -503,8 +503,9 @@ func (s *ShuguangAi) GetTrainingTaskLog(ctx context.Context, taskId string, inst if err != nil { return "", err } + if resp.Code != "0" { - return "", errors.New(resp.Msg) + resp.Data.Content = "waiting for logs..." } return resp.Data.Content, nil