diff options
author | Jürg Billeter <j@bitron.ch> | 2018-09-26 10:03:29 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-09-27 10:18:03 +0100 |
commit | ef1cb374b590c3b32ef59aaf0d17dffaea037fd6 (patch) | |
tree | 8ce56b1274c17b03d326850cf7604ca8b80dcf82 /buildstream/_scheduler/jobs/cleanupjob.py | |
parent | a5025c33e34ee1e5a40e0606afa5e255bd9be021 (diff) | |
download | buildstream-ef1cb374b590c3b32ef59aaf0d17dffaea037fd6.tar.gz |
_scheduler: Migrate to Context.artifactcache
Diffstat (limited to 'buildstream/_scheduler/jobs/cleanupjob.py')
-rw-r--r-- | buildstream/_scheduler/jobs/cleanupjob.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_scheduler/jobs/cleanupjob.py b/buildstream/_scheduler/jobs/cleanupjob.py index 399435ad9..8bdbba0ed 100644 --- a/buildstream/_scheduler/jobs/cleanupjob.py +++ b/buildstream/_scheduler/jobs/cleanupjob.py @@ -17,15 +17,14 @@ # Tristan Daniël Maat <tristan.maat@codethink.co.uk> # from .job import Job -from ..._platform import Platform class CleanupJob(Job): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - platform = Platform.get_platform() - self._artifacts = platform.artifactcache + context = self._scheduler.context + self._artifacts = context.artifactcache def child_process(self): return self._artifacts.clean() |