Adjusting capacity impact calculation to yield a more even distribution of jobs

This commit is contained in:
Ian Roddis
2021-12-23 11:47:55 -04:00
parent 85d252f43c
commit dd473ab8f0
3 changed files with 11 additions and 14 deletions

View File

@@ -159,8 +159,6 @@ namespace daggy::daggyr {
.resourcesUsed = resourcesUsed});
}
std::cout << "Enqueued " << runID << " / " << taskName << std::endl;
response.send(Pistache::Http::Code::Ok, "");
}
@@ -196,9 +194,9 @@ namespace daggy::daggyr {
curCapacity_.cores += it->second.resourcesUsed.cores;
curCapacity_.memoryMB += it->second.resourcesUsed.memoryMB;
}
pending_.extract(it);
std::cout << "Resolved " << it->first.first << " / "
<< it->first.second << std::endl;
pending_.extract(it);
}
else {
payload = R"({ "state": "RUNNING" })";