diff options
author | Jürg Billeter <j@bitron.ch> | 2017-07-07 12:18:54 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2017-07-14 14:13:51 +0200 |
commit | 8519df3373904a9ba51845dc2c7df66675103f1c (patch) | |
tree | 6e53c55e1c6faf30ca42b081c7891dbb767f0ed4 | |
parent | 3ef6655dd3e8fb5dbf9af6c376d5d140ca6a3025 (diff) | |
download | buildstream-8519df3373904a9ba51845dc2c7df66675103f1c.tar.gz |
pullqueue.py: Do not skip elements for weak cache key artifacts
Attempt to pull artifacts using the strong cache key even for elements
where a local artifact is available using the weak cache key.
-rw-r--r-- | buildstream/_scheduler/pullqueue.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buildstream/_scheduler/pullqueue.py b/buildstream/_scheduler/pullqueue.py index 9ad08053e..6356acaa9 100644 --- a/buildstream/_scheduler/pullqueue.py +++ b/buildstream/_scheduler/pullqueue.py @@ -19,6 +19,9 @@ # Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> # Jürg Billeter <juerg.billeter@codethink.co.uk> +# BuildStream toplevel imports +from ..element import _KeyStrength + # Local imports from . import Queue, QueueType @@ -36,7 +39,7 @@ class PullQueue(Queue): return element._pull() def skip(self, element): - return element._cached() + return element._cached(strength=_KeyStrength.STRONG) def done(self, element, result, returncode): |