Skip to content
Commit de3135b6 authored by Tiago Gomes's avatar Tiago Gomes
Browse files

Move quota checking code into a separate method

Instead of running `utils._get_dir_size(self.artifactdir)` to get the
size of the cache, it would be better to reuse
ArtifactCache.get_cache_size(), otherwise we would have to fully
calculate the size of the artifact cache twice at startup.

As the ArtifactCache is not yet instantiated when Context.load() runs,
move most of the quota checking code into a separate function which can
be called after the ArtifactCache is instantiated.
parent dba32d11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment