From de8eab0434f03b66632e95d3a9c3c738df150c9a Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Wed, 25 Aug 2021 12:34:36 -0700 Subject: [PATCH] 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 --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 62e056f738..45f2605396 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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':