mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Fix up error handler callback to include the task that actually failed
This commit is contained in:
@@ -231,7 +231,8 @@ def process_graph(graph, task_capacity):
|
|||||||
node_args = task_node['metadata']
|
node_args = task_node['metadata']
|
||||||
impact = node_obj.task_impact
|
impact = node_obj.task_impact
|
||||||
if impact <= remaining_volume or running_impact == 0:
|
if impact <= remaining_volume or running_impact == 0:
|
||||||
dependent_nodes = [{'type': graph.get_node_type(n['node_object']), 'id': n['node_object'].id} for n in graph.get_dependents(node_obj)]
|
dependent_nodes = [{'type': graph.get_node_type(node_obj), 'id': node_obj.id}] + \
|
||||||
|
[{'type': graph.get_node_type(n['node_object']), 'id': n['node_object'].id} for n in graph.get_dependents(node_obj)]
|
||||||
error_handler = handle_work_error.s(subtasks=dependent_nodes)
|
error_handler = handle_work_error.s(subtasks=dependent_nodes)
|
||||||
start_status = node_obj.start(error_callback=error_handler)
|
start_status = node_obj.start(error_callback=error_handler)
|
||||||
if not start_status:
|
if not start_status:
|
||||||
|
|||||||
Reference in New Issue
Block a user