Skip additional instance checks on unrecognized hosts

Skip checking the health of a mesh instance when the instance is not registered
with the application. This prevents encountering an 'UnbouncLocalError' when
running the application attached to a multi-use Receptor mesh network

Signed-off-by: Ethan Paul <24588726+enpaul@users.noreply.github.com>
This commit is contained in:
Ethan Paul 2021-10-27 13:42:52 -04:00
parent 25140c9072
commit c77aaece1d
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF

View File

@ -514,6 +514,7 @@ def inspect_execution_nodes(instance_list):
logger.warn(f"Registered execution node '{hostname}' (marked disabled by default)")
else:
logger.warn(f"Unrecognized node on mesh advertising ansible-runner work type: {hostname}")
continue
was_lost = instance.is_lost(ref_time=nowtime)
last_seen = parse_date(ad['Time'])