diff options
author | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-03-14 13:36:24 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-25 11:46:44 +0000 |
commit | af35c82365d1ec9333efbe28b52aa6e04811c04f (patch) | |
tree | 2a3b4d86346dbcb9e3dd19234849d9ea9c7e4b59 | |
parent | df23ea3ee58334569744ebeef9cfc729c2ddafc4 (diff) | |
download | buildstream-af35c82365d1ec9333efbe28b52aa6e04811c04f.tar.gz |
_stream.py: Schedule source push queue
Part of #440
-rw-r--r-- | buildstream/_stream.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py index e5e6c2316..f15657ad2 100644 --- a/buildstream/_stream.py +++ b/buildstream/_stream.py @@ -34,7 +34,8 @@ from fnmatch import fnmatch from ._artifactelement import verify_artifact_ref from ._exceptions import StreamError, ImplError, BstError, ArtifactElementError, CASCacheError from ._message import Message, MessageType -from ._scheduler import Scheduler, SchedStatus, TrackQueue, FetchQueue, BuildQueue, PullQueue, PushQueue +from ._scheduler import Scheduler, SchedStatus, TrackQueue, FetchQueue, \ + SourcePushQueue, BuildQueue, PullQueue, PushQueue from ._pipeline import Pipeline, PipelineSelection from ._profile import Topics, profile_start, profile_end from .types import _KeyStrength @@ -261,11 +262,15 @@ class Stream(): self._add_queue(PullQueue(self._scheduler)) self._add_queue(FetchQueue(self._scheduler, skip_cached=True)) + self._add_queue(BuildQueue(self._scheduler)) if self._artifacts.has_push_remotes(): self._add_queue(PushQueue(self._scheduler)) + if self._sourcecache.has_push_remotes(): + self._add_queue(SourcePushQueue(self._scheduler)) + # Enqueue elements # if track_elements: @@ -1232,6 +1237,7 @@ class Stream(): if track_elements: self._enqueue_plan(track_elements, queue=track_queue) + self._enqueue_plan(fetch_plan) self._run() |