mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02: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):
|
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 = {}
|
node_lookup = {}
|
||||||
for inst in instance_list:
|
for inst in instance_list:
|
||||||
if inst.node_type == 'execution':
|
if inst.node_type == 'execution':
|
||||||
|
|||||||
Reference in New Issue
Block a user