mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 05:17:36 -02:30
Job detail page
When UpdateDOM is enabled, the CPU melts. Experimenting with ways to updated the DOM without it being sucha drain.
This commit is contained in:
@@ -960,6 +960,10 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
keys;
|
||||
if (scope.activePlay) {
|
||||
keys = Object.keys(scope.jobData.plays[scope.activePlay].tasks);
|
||||
keys.reverse();
|
||||
if (keys.length > scope.tasksMaxRows + 1) {
|
||||
keys.splice(0, keys.length - (scope.taskMaxRows + 1));
|
||||
}
|
||||
keys.sort();
|
||||
while (idx < keys.length && idx < scope.tasksMaxRows) {
|
||||
result.push(scope.jobData.plays[scope.activePlay].tasks[keys[idx]]);
|
||||
@@ -1006,11 +1010,11 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
|
||||
DrawPlays({ scope: scope });
|
||||
DrawTasks({ scope: scope });
|
||||
DrawHostResults({ scope: scope });
|
||||
// DrawHostResults({ scope: scope });
|
||||
|
||||
if (scope.host_summary.total > 0) {
|
||||
DrawGraph({ scope: scope, resize: true });
|
||||
}
|
||||
//if (scope.host_summary.total > 0) {
|
||||
// DrawGraph({ scope: scope, resize: true });
|
||||
//}
|
||||
};
|
||||
}])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user