jupyter创建实训增加创建数据集目录

chromesetting
daiao 5 years ago
parent 0bf2c43de2
commit 99d35c791c

@ -42,7 +42,7 @@ class CreateShixunService < ApplicationService
if !Laboratory.current.main_site?
Laboratory.current.laboratory_shixuns.create!(shixun: shixun, ownership: true)
end
# 如果是jupyter先创建一个目录,为了挂载
# 如果是jupyter先创建一个目录,为了挂载(因为后续数据集开启Pod后环境在没销毁前你上传数据集是挂载不上目录的因此要先创建目录方便中间层挂载)
if shixun.is_jupyter?
folder = edu_setting('shixun_folder')
path = "#{folder}/#{identifier}"

Loading…
Cancel
Save