mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 02:31:03 -03:30
inspect_execution_nodes should *not* block when retreiving lock
* would otherwise hold up cluster heartbeat task * furthermore, only really need one node to run through `inspect_execution_nodes` each interval
This commit is contained in:
@@ -429,7 +429,7 @@ def execution_node_health_check(node):
|
||||
|
||||
|
||||
def inspect_execution_nodes(instance_list):
|
||||
with advisory_lock('inspect_execution_nodes_lock', wait=True):
|
||||
with advisory_lock('inspect_execution_nodes_lock', wait=False):
|
||||
node_lookup = {}
|
||||
for inst in instance_list:
|
||||
if inst.node_type == 'execution':
|
||||
|
||||
Reference in New Issue
Block a user