Skip to content
Snippets Groups Projects
Commit 2b078106 authored by Tiago Gomes's avatar Tiago Gomes
Browse files

artifactcache: ensure method is called from main process

Ensure that add_artifact_size() is called from the main process.
parent d2ae713f
No related branches found
No related tags found
Loading
......@@ -272,6 +272,8 @@ class ArtifactCache():
# artifact_size (int): The size to add.
#
def add_artifact_size(self, artifact_size):
assert utils._is_main_process()
self._cache_size = self.get_cache_size() + artifact_size
self._write_cache_size(self._cache_size)
......
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