diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-22 15:40:35 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-08-27 15:21:34 +0100 |
commit | bf6ca6615bb5b69defcc41f33625cbfc2b300f1a (patch) | |
tree | ae2d990b5f60997b494a5b18ff3fa82081d2be65 /src/buildstream/_pipeline.py | |
parent | 6c7a2eeec7b648870ffb8384a794208b05661c9a (diff) | |
download | buildstream-bf6ca6615bb5b69defcc41f33625cbfc2b300f1a.tar.gz |
_artifactcache.py: Add remote support to bst artifact show
If remotes exist, each remote will be checked for the target
artifacts. If an artifact is cached remotely, we make a
record of this.
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r-- | src/buildstream/_pipeline.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py index 7cf4abbe3..4b0c6ad94 100644 --- a/src/buildstream/_pipeline.py +++ b/src/buildstream/_pipeline.py @@ -154,6 +154,18 @@ class Pipeline(): # dependencies. element._update_ready_for_runtime_and_cached() + # check_remotes() + # + # Check if the target artifact is cached in any of the available remotes + # + # Args: + # 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): + for element in targets: + element._cached_remotely() + # dependencies() # # Generator function to iterate over elements and optionally |