def copy_task_artifact_to_local_cache(project_name=None, task_name=None, task_id=None, artifact_name=None): if task_id is not None: task = ClearmlTask.get_task(project_name=project_name, task_name=task_name) else: task = ClearmlTask.get_task(task_id=task_id) cache_dir = task.cache_dir artifact = task.artifacts[artifact_name] return artifact.get_local_copy()
HI, i configured an on-prem file server for clearml which is mounted on my pc. I am trying retrieve an artifact from a previous run . because this file is big i want to bring it to the local cache (on my PC). However, when i do the following artifact =task.artifacts[name].get_local_copy() i get a path to the file in the mounted instead of a copy in the managed cache. Any way to force clearml to copy it (similar to how it does it for datasets?