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 @<1546303277010784256:profile|LivelyBadger26> , can you provide a snippet that reproduces this?
its by design (i think) that if the path is local (startswith("file://")) the storageManager doesn't copy the file to the cache and returns the path to the local storage.