mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 06:51:10 +03:00
Limit the graph builder to processing just the first few hundred jobs
when building the dependency graph
This commit is contained in:
parent
651dd1239a
commit
d2a4f2a190
@ -229,7 +229,7 @@ def rebuild_graph(message):
|
|||||||
graph = SimpleDAG()
|
graph = SimpleDAG()
|
||||||
for task in running_tasks:
|
for task in running_tasks:
|
||||||
graph.add_node(task)
|
graph.add_node(task)
|
||||||
for wait_task in waiting_tasks:
|
for wait_task in waiting_tasks[:500]:
|
||||||
node_dependencies = []
|
node_dependencies = []
|
||||||
for node in graph:
|
for node in graph:
|
||||||
if wait_task.is_blocked_by(node['node_object']):
|
if wait_task.is_blocked_by(node['node_object']):
|
||||||
|
Loading…
Reference in New Issue
Block a user