From d2a4f2a1901690ee084185d1d62d049eb15a145c Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 15 Dec 2014 12:46:10 -0500 Subject: [PATCH] Limit the graph builder to processing just the first few hundred jobs when building the dependency graph --- awx/main/management/commands/run_task_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/run_task_system.py b/awx/main/management/commands/run_task_system.py index 6ee41ccd3d..0f83a7aabd 100644 --- a/awx/main/management/commands/run_task_system.py +++ b/awx/main/management/commands/run_task_system.py @@ -229,7 +229,7 @@ def rebuild_graph(message): graph = SimpleDAG() for task in running_tasks: graph.add_node(task) - for wait_task in waiting_tasks: + for wait_task in waiting_tasks[:500]: node_dependencies = [] for node in graph: if wait_task.is_blocked_by(node['node_object']):