summaryrefslogtreecommitdiff
path: root/buildstream/_scheduler/pullqueue.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_scheduler/pullqueue.py')
-rw-r--r--buildstream/_scheduler/pullqueue.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_scheduler/pullqueue.py b/buildstream/_scheduler/pullqueue.py
index e879b4689..4cc0f8a1b 100644
--- a/buildstream/_scheduler/pullqueue.py
+++ b/buildstream/_scheduler/pullqueue.py
@@ -56,6 +56,9 @@ class PullQueue(Queue):
if returncode != 0:
return False
+ if not result:
+ element._pull_failed()
+
element._update_state()
# Element._pull() returns True if it downloaded an artifact,