mark all remaining placeable tasks pending with task dependency manager (#2528)

This commit is contained in:
Alexey Tumanov
2018-08-06 13:08:11 -07:00
committed by Robert Nishihara
parent 981d9818c1
commit 85b8b2a395
+8
View File
@@ -750,6 +750,14 @@ void NodeManager::ScheduleTasks() {
EnqueuePlaceableTask(t);
}
}
// All remaining placeable tasks should be registered with the task dependency
// manager. TaskDependencyManager::TaskPending() is assumed to be idempotent.
// TODO(atumanov): evaluate performance implications of registering all new tasks on
// submission vs. registering remaining queued placeable tasks here.
for (const auto &task : local_queues_.GetPlaceableTasks()) {
task_dependency_manager_.TaskPending(task);
}
}
void NodeManager::TreatTaskAsFailed(const TaskSpecification &spec) {