mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 17:16:51 +00:00
Do not share apt cache among agents on the same machine
This commit is contained in:
parent
f2d2d702de
commit
3393372b9c
@ -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':
|
||||||
|
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user