From 2321f06c8a9d4da92d17895e65b496c1e39bf497 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Fri, 11 Mar 2022 13:34:38 -0500 Subject: [PATCH] Only clear hop node errors if they were lost before, not lost now --- awx/main/tasks/system.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/main/tasks/system.py b/awx/main/tasks/system.py index af02d3de55..927bbbee2a 100644 --- a/awx/main/tasks/system.py +++ b/awx/main/tasks/system.py @@ -457,8 +457,9 @@ def inspect_execution_nodes(instance_list): # Only execution nodes should be dealt with by execution_node_health_check if instance.node_type == 'hop': - logger.warning(f'Hop node {hostname}, has rejoined the receptor mesh') - instance.save_health_data(errors='') + if was_lost and (not instance.is_lost(ref_time=nowtime)): + logger.warning(f'Hop node {hostname}, has rejoined the receptor mesh') + instance.save_health_data(errors='') continue if was_lost: