|
|
|
@@ -6,7 +6,6 @@ |
|
|
|
package repo |
|
|
|
|
|
|
|
import ( |
|
|
|
"code.gitea.io/gitea/modules/setting" |
|
|
|
"net/http" |
|
|
|
"os" |
|
|
|
"strconv" |
|
|
|
@@ -16,6 +15,7 @@ import ( |
|
|
|
"code.gitea.io/gitea/modules/context" |
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/modelarts" |
|
|
|
"code.gitea.io/gitea/modules/setting" |
|
|
|
"code.gitea.io/gitea/modules/storage" |
|
|
|
) |
|
|
|
|
|
|
|
@@ -257,7 +257,7 @@ func DelTrainJobVersion(ctx *context.APIContext) { |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} else { //已删除该任务下的所有版本 |
|
|
|
} else { //已删除该任务下的所有版本 |
|
|
|
deleteJobStorage(task.JobName) |
|
|
|
} |
|
|
|
|
|
|
|
@@ -340,6 +340,6 @@ func deleteJobStorage(jobName string) error { |
|
|
|
if err != nil { |
|
|
|
log.Error("ObsRemoveObject(%s) failed:%v", localJobPath, err) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return nil |
|
|
|
} |