|
|
|
@@ -1660,6 +1660,14 @@ func GrampusNotebookRestart(ctx *context.Context) { |
|
|
|
errorMsg = ctx.Tr("points.insufficient_points_balance") |
|
|
|
break |
|
|
|
} |
|
|
|
if task.IsGPUTask() { |
|
|
|
if _, err := os.Stat(getOldJobPath(task)); err != nil { |
|
|
|
log.Error("Can not find job minio path", err) |
|
|
|
resultCode = "-1" |
|
|
|
errorMsg = ctx.Tr("cloudbrain.result_cleared") |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if !HasModelFile(task) { //使用预训练模型训练 |
|
|
|
errorMsg = ctx.Tr("repo.modelconvert.manage.model_not_exist") |
|
|
|
|