Exemple #1
0
 def insert_envs(cls, user_ID, app_name):
     """
     copy used modules and datasets to jl container when start
     :param user_ID:
     :param app_name:
     :return:
     """
     user = UserBusiness.get_by_user_ID(user_ID)
     app = AppBusiness.read_unique_one(name=app_name, user=user)
     for used_module in app.used_modules:
         AppBusiness.insert_module_env(app, used_module.module,
                                       used_module.version)
Exemple #2
0
 def insert_envs(cls, user_ID, app_name):
     user = UserBusiness.get_by_user_ID(user_ID)
     app = AppBusiness.read_unique_one(name=app_name, user=user)
     for module in app.used_modules:
         AppBusiness.insert_module_env(app, module)