From f48192df95af3259e93a3a49ec3df19de2e646fd Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Fri, 23 Feb 2024 16:18:12 +0100 Subject: Employ blob splitting and splicing for endpoint dispatching --- src/buildtool/execution_engine/executor/executor.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/buildtool/execution_engine/executor') diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp index dd6ada70..caf84b80 100644 --- a/src/buildtool/execution_engine/executor/executor.hpp +++ b/src/buildtool/execution_engine/executor/executor.hpp @@ -102,10 +102,12 @@ class ExecutorImpl { auto alternative_api = GetAlternativeEndpoint(properties, dispatch_list); if (alternative_api) { - if (not api->RetrieveToCas( + if (not api->ParallelRetrieveToCas( std::vector{Artifact::ObjectInfo{ - *root_digest, ObjectType::Tree, false}}, - &(*alternative_api))) { + *root_digest, ObjectType::Tree, /* failed= */ false}}, + &(*alternative_api), + /* jobs= */ 1, + /* use_blob_splitting= */ true)) { Logger::Log(LogLevel::Error, "Failed to sync tree {} to dispatch endpoint", root_digest->hash()); -- cgit v1.2.3