summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-07 10:53:07 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-07 17:31:15 +0100
commit188679f62e3e42a07154fa592bf682861d4ee3c1 (patch)
treee8a84e322dca6007038a46dd8a5863263cca79d6 /src/buildtool/execution_api/remote/bazel/bazel_api.hpp
parent825491edfe7433bd59345b6d27e1e177be7e5674 (diff)
downloadjustbuild-188679f62e3e42a07154fa592bf682861d4ee3c1.tar.gz
Bazel API: implement ParallelRetrieveToCas
... using thread-based parallelism for the blobs of each tree.
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.hpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.hpp b/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
index 2e2befba..3b1b5193 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
@@ -65,6 +65,11 @@ class BazelApi final : public IExecutionApi {
std::vector<int> const& fds,
bool raw_tree) noexcept -> bool final;
+ [[nodiscard]] auto ParallelRetrieveToCas(
+ std::vector<Artifact::ObjectInfo> const& artifacts_info,
+ gsl::not_null<IExecutionApi*> const& api,
+ std::size_t jobs) noexcept -> bool final;
+
[[nodiscard]] auto RetrieveToCas(
std::vector<Artifact::ObjectInfo> const& artifacts_info,
gsl::not_null<IExecutionApi*> const& api) noexcept -> bool final;