Skip to content
Snippets Groups Projects
Commit d6bcfa86 authored by Philip ABBET's avatar Philip ABBET
Browse files

Add settings to use a directory with restricted access for the datasets

parent fe31c050
No related branches found
No related tags found
No related merge requests found
...@@ -1391,6 +1391,12 @@ class JobSplit(models.Model): ...@@ -1391,6 +1391,12 @@ class JobSplit(models.Model):
config = simplejson.loads(str(self.job.block.command)) config = simplejson.loads(str(self.job.block.command))
if settings.DATASETS_UID is not None:
config['datasets_uid'] = settings.DATASETS_UID
if settings.DATASETS_ROOT_PATH is not None:
config['datasets_root_path'] = settings.DATASETS_ROOT_PATH
# setup range if necessary # setup range if necessary
if self.job.block.required_slots > 1: if self.job.block.required_slots > 1:
......
...@@ -199,6 +199,16 @@ EXPERIMENTS_ROOT = os.path.join(PREFIX, 'experiments') ...@@ -199,6 +199,16 @@ EXPERIMENTS_ROOT = os.path.join(PREFIX, 'experiments')
CACHE_ROOT = os.path.join(PREFIX, 'cache') CACHE_ROOT = os.path.join(PREFIX, 'cache')
##############################################################################
#
# IF ACCESS TO THE DATASETS IS RESTRICTED TO A SPECIFIC USER
#
##############################################################################
DATASETS_UID = None
DATASETS_ROOT_PATH = None
############################################################################## ##############################################################################
# #
# ACCOUNTS # ACCOUNTS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment