|
|
@@ -298,7 +298,7 @@ func cloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { |
|
|
|
for _, infos := range datasetInfos { |
|
|
|
attachSize += infos.Size |
|
|
|
} |
|
|
|
if attachSize > int(setting.DebugAttachSize*1024*1024*1024) { |
|
|
|
if attachSize > int(setting.DebugAttachSize*1000*1000*1000) { |
|
|
|
log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugAttachSize)) // GB |
|
|
|
cloudBrainNewDataPrepare(ctx, jobType) |
|
|
|
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tpl, &form) |
|
|
|