|
|
@@ -296,9 +296,16 @@ func cloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { |
|
|
|
|
|
|
|
if jobType == string(models.JobTypeDebug) { |
|
|
|
for _, infos := range datasetInfos { |
|
|
|
log.Info("the size of dataset", infos.Size) |
|
|
|
log.Info("the size of dataset(GB):", infos.Size) |
|
|
|
|
|
|
|
if infos.Size > int(setting.DebugDatasetSize) { |
|
|
|
log.Info("datasize exceed limit:", infos.Size) |
|
|
|
log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugDatasetSize)) |
|
|
|
cloudBrainNewDataPrepare(ctx, jobType) |
|
|
|
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tpl, &form) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|