diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-09-03 21:17:54 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-09-10 16:53:56 +0900 |
commit | 98ab2b8916716d8d6dde6eb778c50addff90400b (patch) | |
tree | 2b1f720eff536b03ad2e24fa4bd149978fa32a65 | |
parent | e5847077e6493e86ec5de09b2efa1f74a6f2d099 (diff) | |
download | buildstream-98ab2b8916716d8d6dde6eb778c50addff90400b.tar.gz |
_scheduler/resources.py: Set CACHE max resources to 0
This means there is no cap for shared resource requests.
Together with the previous commit, this causes the cleanup
job and the pull/build jobs to all require unlimited shared
access to the CACHE resource; while only the cleanup job
requires exclusive access to the resource.
This is a part of #623
-rw-r--r-- | buildstream/_scheduler/resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_scheduler/resources.py b/buildstream/_scheduler/resources.py index bbf851b06..fcf10d7bd 100644 --- a/buildstream/_scheduler/resources.py +++ b/buildstream/_scheduler/resources.py @@ -8,7 +8,7 @@ class ResourceType(): class Resources(): def __init__(self, num_builders, num_fetchers, num_pushers): self._max_resources = { - ResourceType.CACHE: 1, + ResourceType.CACHE: 0, ResourceType.DOWNLOAD: num_fetchers, ResourceType.PROCESS: num_builders, ResourceType.UPLOAD: num_pushers |