diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-30 14:28:43 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-09-04 12:05:49 +0000 |
commit | db60c52e5bd46770093197f0abb24d5595e708af (patch) | |
tree | 04500e45ae882b990b75267f0b282494e8dd4530 | |
parent | e91df0811aac70a3c7d9adfde4f44268f8a210c7 (diff) | |
download | buildstream-jennis/tasks.tar.gz |
_pipeline.py: Add task progress to check_remote()jennis/tasks
-rw-r--r-- | src/buildstream/_pipeline.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py index b5711109e..23fc52f63 100644 --- a/src/buildstream/_pipeline.py +++ b/src/buildstream/_pipeline.py @@ -169,10 +169,14 @@ class Pipeline(): # targets (list [Element]): The list of element targets # def check_remotes(self, targets): - with self._context.messenger.timed_activity("Querying remotes for cached status", silent_nested=True): + with self._context.messenger.simple_task("Querying remotes for cached status", silent_nested=True) as task: + task.set_maximum_progress(len(targets)) + for element in targets: element._cached_remotely() + task.add_current_progress() + # dependencies() # # Generator function to iterate over elements and optionally |