New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better task balancing #1482

merged 73 commits into from Jun 8, 2017
Jump to file or symbol
Failed to load files and symbols.
+1 鈭1
Diff settings


Just for now

Viewing a subset of changes. View all

fix resource check

  • Loading branch information...
darcatron committed May 11, 2017
commit e3a874429f9256ab19c18575184f0518efe0f829
@@ -95,7 +95,7 @@ public void runActionOnPoll() {
usageManager.saveSpecificTaskUsage(taskId, usage);
Optional<SingularityTask> maybeTask = taskManager.getTask(task);
if (maybeTask.isPresent() && maybeTask.get().getTaskRequest().getPendingTask().getResources().isPresent()) {
if (maybeTask.isPresent() && maybeTask.get().getTaskRequest().getDeploy().getResources().isPresent()) {
memoryMbReserved += maybeTask.get().getTaskRequest().getDeploy().getResources().get().getMemoryMb();
cpuReserved += maybeTask.get().getTaskRequest().getDeploy().getResources().get().getCpus();
ProTip! Use n and p to navigate between commits in a pull request.