This is an automated email from the ASF dual-hosted git repository. root pushed a commit to branch testing/local-cache-expiry in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 85fbf36f41ef7376cda914de03951217559a7374 Author: Tristan Maat <[email protected]> AuthorDate: Wed Jul 11 11:26:21 2018 +0100 scheduler.py: Add cache size check function --- buildstream/_scheduler/scheduler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/buildstream/_scheduler/scheduler.py b/buildstream/_scheduler/scheduler.py index b715d51..5a991a8 100644 --- a/buildstream/_scheduler/scheduler.py +++ b/buildstream/_scheduler/scheduler.py @@ -393,6 +393,14 @@ class Scheduler(): # Local Private Methods # ####################################################### + def _check_cache_size_real(self): + logpath = os.path.join(self.context.logdir, 'cache_size.{pid}.log') + job = CacheSizeJob(self, 'cache_size', logpath, + resources=[ResourceType.CACHE, + ResourceType.PROCESS], + exclusive_resources=[ResourceType.CACHE], + complete_cb=None) + # _suspend_jobs() # # Suspend all ongoing jobs.
