summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-07-07 12:18:54 +0200
committerJürg Billeter <j@bitron.ch>2017-07-14 14:13:51 +0200
commit8519df3373904a9ba51845dc2c7df66675103f1c (patch)
tree6e53c55e1c6faf30ca42b081c7891dbb767f0ed4
parent3ef6655dd3e8fb5dbf9af6c376d5d140ca6a3025 (diff)
downloadbuildstream-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.py5
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):