summaryrefslogtreecommitdiff
path: root/buildstream/_scheduler/jobs/cachesizejob.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_scheduler/jobs/cachesizejob.py')
-rw-r--r--buildstream/_scheduler/jobs/cachesizejob.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_scheduler/jobs/cachesizejob.py b/buildstream/_scheduler/jobs/cachesizejob.py
index fb56ca016..a96b92353 100644
--- a/buildstream/_scheduler/jobs/cachesizejob.py
+++ b/buildstream/_scheduler/jobs/cachesizejob.py
@@ -17,7 +17,6 @@
# Tristan Daniƫl Maat <tristan.maat@codethink.co.uk>
#
from .job import Job, JobStatus
-from ..._platform import Platform
class CacheSizeJob(Job):
@@ -25,8 +24,8 @@ class CacheSizeJob(Job):
super().__init__(*args, **kwargs)
self._complete_cb = complete_cb
- platform = Platform.get_platform()
- self._artifacts = platform.artifactcache
+ context = self._scheduler.context
+ self._artifacts = context.artifactcache
def child_process(self):
return self._artifacts.compute_cache_size()