Moving to a poll method for workers, and daggyd-preserved capacities

This commit is contained in:
Ian Roddis
2021-12-24 10:22:58 -04:00
parent 779d6adaea
commit d832b935d7

View File

@@ -163,6 +163,9 @@ std::future<AttemptRecord> DaggyRunnerTaskExecutor::execute(
}
std::sort(impacts.begin(), impacts.end());
for (const auto &[runner, impact] : impacts) {
std::cout << "\t" << runner << ": " << impact << std::endl;
}
runner = impacts.back().first;
auto &caps = runners_.at(runner);