Do not share apt cache among agents on the same machine

This commit is contained in:
allegroai 2020-03-09 12:38:51 +02:00
parent f2d2d702de
commit 3393372b9c
2 changed files with 2 additions and 1 deletions

View File

@ -1870,6 +1870,7 @@ class Worker(ServiceCommandSection):
docker = 'docker' docker = 'docker'
base_cmd = [docker, 'run', '-t'] base_cmd = [docker, 'run', '-t']
update_scheme = ""
dockers_nvidia_visible_devices = 'all' dockers_nvidia_visible_devices = 'all'
gpu_devices = os.environ.get('NVIDIA_VISIBLE_DEVICES', None) gpu_devices = os.environ.get('NVIDIA_VISIBLE_DEVICES', None)
if gpu_devices is None or gpu_devices.lower().strip() == 'all': if gpu_devices is None or gpu_devices.lower().strip() == 'all':

View File

@ -177,7 +177,7 @@ class Session(_Session):
folder_keys = ('agent.venvs_dir', 'agent.vcs_cache.path', folder_keys = ('agent.venvs_dir', 'agent.vcs_cache.path',
'agent.pip_download_cache.path', 'agent.pip_download_cache.path',
'agent.docker_pip_cache', 'agent.docker_apt_cache') 'agent.docker_pip_cache', 'agent.docker_apt_cache')
singleton_folders = ('agent.venvs_dir', 'agent.vcs_cache.path',) singleton_folders = ('agent.venvs_dir', 'agent.vcs_cache.path', 'agent.docker_apt_cache')
if os.environ.get(ENV_TASK_EXECUTE_AS_USER): if os.environ.get(ENV_TASK_EXECUTE_AS_USER):
folder_keys = tuple(list(folder_keys) + ['sdk.storage.cache.default_base_dir']) folder_keys = tuple(list(folder_keys) + ['sdk.storage.cache.default_base_dir'])