summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-09-05 20:59:53 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-09-10 16:07:13 +0900
commit7c937cb83e9beb289c524fb3c6fcabe92491f766 (patch)
tree912c118bec154f4c56ef96dc13c495127f66d07e
parent48ebe8897628e3f91bc0a46007c04b8b2e5d0cb9 (diff)
downloadbuildstream-7c937cb83e9beb289c524fb3c6fcabe92491f766.tar.gz
_scheduler/scheduler.py: Make CacheSizeJob() not require the CACHE exclusively
This runs after every pull, and does not need the cache exclusively, only the cleanup job requires the cache exclusively. Without this, every time a cache_size job is queued, all pull and build jobs need to complete before cache_size job can run exclusively, which is not good. This is a part of #623
-rw-r--r--buildstream/_scheduler/scheduler.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/buildstream/_scheduler/scheduler.py b/buildstream/_scheduler/scheduler.py
index aec9b6fc9..7a35f8b70 100644
--- a/buildstream/_scheduler/scheduler.py
+++ b/buildstream/_scheduler/scheduler.py
@@ -332,7 +332,6 @@ class Scheduler():
job = CacheSizeJob(self, 'cache_size', 'cache_size/cache_size',
resources=[ResourceType.CACHE,
ResourceType.PROCESS],
- exclusive_resources=[ResourceType.CACHE],
complete_cb=self._run_cleanup)
self.schedule_jobs([job])