summaryrefslogtreecommitdiff
path: root/src/buildstream/_pipeline.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r--src/buildstream/_pipeline.py12
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