Only clear hop node errors if they were lost before, not lost now

This commit is contained in:
Alan Rominger 2022-03-11 13:34:38 -05:00
parent 2e4d866f69
commit 2321f06c8a
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -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: