fix LOG bugs

Former-commit-id: 71434c3bafcfa2653462acb43ed63e0dcb6a2ddf
This commit is contained in:
tzwang 2024-05-22 10:08:31 +08:00
parent 1f28682e6c
commit 705afead2b
1 changed files with 2 additions and 1 deletions

View File

@ -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