diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2024-02-23 16:18:12 +0100 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2024-02-26 17:16:21 +0100 |
commit | f48192df95af3259e93a3a49ec3df19de2e646fd (patch) | |
tree | e8e09d138e445a4553dd4a90dbcc675d76d8f1a8 /src/buildtool/execution_engine/executor | |
parent | 5a7cd2ae7aadfd754018fcd0b20adcbc3f368f1d (diff) | |
download | justbuild-f48192df95af3259e93a3a49ec3df19de2e646fd.tar.gz |
Employ blob splitting and splicing for endpoint dispatching
Diffstat (limited to 'src/buildtool/execution_engine/executor')
-rw-r--r-- | src/buildtool/execution_engine/executor/executor.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
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>{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()); |