| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
2a59b5f94b |
Merge pull request 'fix issue' (#3014) from temp-0926-patch into V20220926.patch
Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/3014 |
3 years ago |
|
|
f9a473d8a5 | Merge branch 'V20220926.patch' into temp-0926-patch | 3 years ago |
|
|
53c4b972bf | fix issue | 3 years ago |
|
|
0c7e41aebb |
Merge pull request 'zouap0926,解决GPU训练任务下载日志问题。' (#3009) from zouap0926 into V20220926.patch
Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/3009 |
3 years ago |
|
|
e21e4766f6 | Merge branch 'V20220926.patch' into zouap0926 | 3 years ago |
|
|
1a3240d906 |
解决日志下载问题。
Signed-off-by: zouap <zouap@pcl.ac.cn> |
3 years ago |
|
|
3f17373cbe |
提交代码,将IP地址不显示到前端。
Signed-off-by: zouap <zouap@pcl.ac.cn> |
3 years ago |
|
|
7945d1c996 |
Merge pull request 'fix issue' (#3007) from temp-0926-patch into V20220926.patch
Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/3007 |
3 years ago |
| @@ -1707,6 +1707,7 @@ func QueryModelTrainJobList(repoId int64) ([]*CloudbrainInfo, int, error) { | |||
| keys := make(map[string]string) | |||
| uniqueElements := make([]*CloudbrainInfo, 0) | |||
| for _, entry := range cloudbrains { | |||
| entry.Cloudbrain.ContainerIp = "" | |||
| if _, value := keys[entry.JobID]; !value { | |||
| keys[entry.JobID] = entry.DisplayJobName | |||
| uniqueElements = append(uniqueElements, entry) | |||
| @@ -485,7 +485,7 @@ func getAllLineFromFile(path string) int { | |||
| } | |||
| func getLastLogFromModelDir(jobName string, lines int, resultPath string) map[string]interface{} { | |||
| prefix := "/" + setting.CBCodePathPrefix + jobName + resultPath | |||
| prefix := setting.CBCodePathPrefix + jobName + resultPath | |||
| files, err := storage.GetOneLevelAllObjectUnderDirMinio(setting.Attachment.Minio.Bucket, prefix, "") | |||
| if err != nil { | |||
| log.Error("query cloudbrain model failed: %v", err) | |||
| @@ -546,7 +546,7 @@ func getLastLogFromModelDir(jobName string, lines int, resultPath string) map[st | |||
| } | |||
| func getLogFromModelDir(jobName string, startLine int, endLine int, resultPath string) map[string]interface{} { | |||
| prefix := "/" + setting.CBCodePathPrefix + jobName + resultPath | |||
| prefix := setting.CBCodePathPrefix + jobName + resultPath | |||
| files, err := storage.GetOneLevelAllObjectUnderDirMinio(setting.Attachment.Minio.Bucket, prefix, "") | |||
| if err != nil { | |||
| log.Error("query cloudbrain model failed: %v", err) | |||
| @@ -498,6 +498,9 @@ func QueryTrainJobVersionList(ctx *context.Context) { | |||
| if err != nil { | |||
| ctx.ServerError("QueryTrainJobList:", err) | |||
| } else { | |||
| for _, tmp := range VersionListTasks { | |||
| tmp.ContainerIp = "" | |||
| } | |||
| ctx.JSON(200, VersionListTasks) | |||
| } | |||
| } | |||
| @@ -253,7 +253,7 @@ | |||
| <div style="float: right;"> | |||
| {{if and ($.canDownload) (ne .Status "WAITING") ($.Permission.CanWrite $.UnitTypeModelManage) }} | |||
| <a class="ti-action-menu-item" id="{{.VersionName}}-create-model" | |||
| onclick="showcreate({DisplayJobName:{{.DisplayJobName}},JobName:{{.JobName}},JobID:{{.JobID}},VersionName:{{.VersionName}})">{{$.i18n.Tr "repo.modelarts.create_model"}}</a> | |||
| onclick="showcreate({DisplayJobName:{{.DisplayJobName}},JobName:{{.JobName}},JobID:{{.JobID}},VersionName:{{.VersionName}}})">{{$.i18n.Tr "repo.modelarts.create_model"}}</a> | |||
| {{else}} | |||
| <a class="ti-action-menu-item disabled" id="{{.VersionName}}-create-model">{{$.i18n.Tr "repo.modelarts.create_model"}}</a> | |||
| {{end}} | |||