Merge pull request 'fix tasklog bugs' (#200) from tzwang/pcm-coordinator:master into master
Former-commit-id: f613c07c155d8febd22d117305a28f4ead3c6dc9
This commit is contained in:
commit
75086c1d7e
|
@ -503,8 +503,9 @@ func (s *ShuguangAi) GetTrainingTaskLog(ctx context.Context, taskId string, inst
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.Code != "0" {
|
if resp.Code != "0" {
|
||||||
return "", errors.New(resp.Msg)
|
resp.Data.Content = "waiting for logs..."
|
||||||
}
|
}
|
||||||
|
|
||||||
return resp.Data.Content, nil
|
return resp.Data.Content, nil
|
||||||
|
|
Loading…
Reference in New Issue