|
|
@@ -293,6 +293,13 @@ func cloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { |
|
|
|
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.dataset_select"), tpl, &form) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if jobType == string(models.JobTypeDebug) { |
|
|
|
for _, infos := range datasetInfos { |
|
|
|
log.Info("the size of dataset", infos.Size) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
command := cloudbrain.GetCloudbrainDebugCommand() |
|
|
@@ -842,10 +849,10 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo |
|
|
|
func CloudBrainDebug(ctx *context.Context) { |
|
|
|
task := ctx.Cloudbrain |
|
|
|
debugUrl := setting.DebugServerHost + "jpylab_" + task.JobID + "_" + task.SubTaskName |
|
|
|
if task.BootFile!=""{ |
|
|
|
ctx.Redirect(getFileUrl(debugUrl,task.BootFile)) |
|
|
|
if task.BootFile != "" { |
|
|
|
ctx.Redirect(getFileUrl(debugUrl, task.BootFile)) |
|
|
|
|
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
ctx.Redirect(debugUrl) |
|
|
|
} |
|
|
|
|
|
|
|