summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/execution_engine/executor/executor.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp
index 1981cb28..e86853fb 100644
--- a/src/buildtool/execution_engine/executor/executor.hpp
+++ b/src/buildtool/execution_engine/executor/executor.hpp
@@ -84,7 +84,11 @@ class ExecutorImpl {
[[nodiscard]] static auto ExecuteTreeOverlayAction(
Logger const& logger,
gsl::not_null<DependencyGraph::ActionNode const*> const& action,
- IExecutionApi const& api) -> std::optional<IExecutionResponse::Ptr> {
+ IExecutionApi const& api,
+
+ gsl::not_null<Progress*> const& progress)
+ -> std::optional<IExecutionResponse::Ptr> {
+ progress->TaskTracker().Start(action->Content().Id());
std::vector<DependencyGraph::NamedArtifactNodePtr> inputs =
action->Dependencies();
std::sort(inputs.begin(), inputs.end(), [](auto a, auto b) {
@@ -124,6 +128,7 @@ class ExecutorImpl {
}
tree_artifact.SetObjectInfo(
tree.digest, ObjectType::Tree, failed_inputs);
+ progress->TaskTracker().Stop(action->Content().Id());
return std::nullopt;
}
@@ -142,7 +147,7 @@ class ExecutorImpl {
gsl::not_null<Progress*> const& progress)
-> std::optional<IExecutionResponse::Ptr> {
if (action->Content().IsTreeOverlayAction()) {
- return ExecuteTreeOverlayAction(logger, action, api);
+ return ExecuteTreeOverlayAction(logger, action, api, progress);
}
auto const& inputs = action->Dependencies();
auto const tree_action = action->Content().IsTreeAction();