From cfa3b7bdeef2be0a03719badc45ffa6cd6660ddd Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 14 Jul 2022 15:09:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BB=BB=E5=8A=A1=E4=B9=8B=E5=90=8E=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E8=B5=84=E6=BA=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_convert.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/repo/ai_model_convert.go b/routers/repo/ai_model_convert.go index f0b1bf330..13ef1293c 100644 --- a/routers/repo/ai_model_convert.go +++ b/routers/repo/ai_model_convert.go @@ -534,12 +534,14 @@ func DeleteModelConvert(ctx *context.Context) { func deleteCloudBrainTask(task *models.AiModelConvert) { if task.IsGpuTrainTask() { + log.Info("delete cloudbrain one resource.") dirPath := setting.CBCodePathPrefix + task.ID + "/" err := storage.Attachments.DeleteDir(dirPath) if err != nil { log.Error("DeleteDir(%s) failed:%v", dirPath, err) } } else { + log.Info("delete cloudbrain two resource.") _, err := modelarts.DelTrainJob(task.CloudBrainTaskId) if err != nil { log.Error("DelTrainJob(%s) failed:%v", task.CloudBrainTaskId, err.Error())