summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-21 22:53:48 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-21 22:53:48 +0900
commit66ff0245102c2702254d97abc0663d8d5ad3aa3d (patch)
treed13a85380f0b8215963aba29355747a6945842f2
parentc36c545d2d86966bc24bf8ad391a3faa497cbda9 (diff)
downloadbuildstream-66ff0245102c2702254d97abc0663d8d5ad3aa3d.tar.gz
_scheduler/trackqueue.py: Fixed to report proper processed status.
This was a regression from the project.refs branch recently landed.
-rw-r--r--buildstream/_scheduler/trackqueue.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildstream/_scheduler/trackqueue.py b/buildstream/_scheduler/trackqueue.py
index 8f2da7b10..554d147e9 100644
--- a/buildstream/_scheduler/trackqueue.py
+++ b/buildstream/_scheduler/trackqueue.py
@@ -60,7 +60,9 @@ class TrackQueue(Queue):
for unique_id, new_ref in result:
source = _plugin_lookup(unique_id)
try:
- source._save_ref(new_ref)
+ # We appear processed if at least one source has changed
+ if source._save_ref(new_ref):
+ changed = True
except SourceError as e:
# FIXME: We currently dont have a clear path to
# fail the scheduler from the main process, so