Browse Source

del job

tags/v1.21.12.2^2
lewis 4 years ago
parent
commit
bb3a3a19f8
1 changed files with 0 additions and 18 deletions
  1. +0
    -18
      routers/api/v1/repo/modelarts.go

+ 0
- 18
routers/api/v1/repo/modelarts.go View File

@@ -324,21 +324,3 @@ func ModelList(ctx *context.APIContext) {
"PageIsCloudBrain": true,
})
}

//func DeleteJobStorage(jobName string) error {
// //delete local
// localJobPath := setting.JobPath + jobName
// err := os.RemoveAll(localJobPath)
// if err != nil {
// log.Error("RemoveAll(%s) failed:%v", localJobPath, err)
// }
//
// //delete oss
// dirPath := setting.CodePathPrefix + jobName + "/"
// err = storage.ObsRemoveObject(setting.Bucket, dirPath)
// if err != nil {
// log.Error("ObsRemoveObject(%s) failed:%v", localJobPath, err)
// }
//
// return nil
//}

Loading…
Cancel
Save