1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Silence noisy supervisor tasks, adjust log rotation frequency for all

supervisor tasks
This commit is contained in:
Matthew Jones 2014-09-04 13:26:32 -04:00
parent 58b71ca9f9
commit 5548cfd6a8
2 changed files with 0 additions and 5 deletions

View File

@ -156,7 +156,6 @@ class CallbackReceiver(object):
try:
if event == 'playbook_on_stats':
transaction.commit()
print data
if verbose == 0 and 'res' in data['event_data'] and 'invocation' in data['event_data']['res'] and \
'module_args' in data['event_data']['res']['invocation']:
data['event_data']['res']['invocation']['module_args'] = ""

View File

@ -199,19 +199,15 @@ def rebuild_graph(message):
# Rebuild graph
graph = SimpleDAG()
for task in running_tasks:
print("Adding running task: %s to graph" % str(task))
graph.add_node(task)
print("Waiting Tasks: %s" % str(waiting_tasks))
for wait_task in waiting_tasks:
node_dependencies = []
for node in graph:
if wait_task.is_blocked_by(node['node_object']):
print("Waiting task %s is blocked by %s" % (str(wait_task), node['node_object']))
node_dependencies.append(node['node_object'])
graph.add_node(wait_task)
for dependency in node_dependencies:
graph.add_edge(wait_task, dependency)
print("Graph Edges: %s" % str(graph.edges))
if settings.DEBUG:
graph.generate_graphviz_plot()
return graph