Browse Source

去掉延时操作。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.9.2^2
zouap 3 years ago
parent
commit
4bd413d1b7
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      routers/repo/ai_model_manage.go

+ 0
- 2
routers/repo/ai_model_manage.go View File

@@ -9,7 +9,6 @@ import (
"net/url"
"path"
"strings"
"time"

"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
@@ -139,7 +138,6 @@ func saveModelByParameters(jobId string, versionName string, name string, versio
}

func asyncToCopyModel(aiTask *models.Cloudbrain, id string, modelSelectedFile string) {
time.Sleep(50 * time.Second)
if aiTask.ComputeResource == models.NPUResource {
modelPath, modelSize, err := downloadModelFromCloudBrainTwo(id, aiTask.JobName, "", aiTask.TrainUrl, modelSelectedFile)
if err != nil {


Loading…
Cancel
Save