Set node health to None when restarting

This commit is contained in:
Joshua Boniface 2023-02-13 15:54:46 -05:00
parent 9c14d84bfc
commit 1ea4800212
1 changed files with 9 additions and 0 deletions

View File

@ -372,3 +372,12 @@ class MonitoringInstance(object):
for future in concurrent.futures.as_completed(to_future_plugin_results): for future in concurrent.futures.as_completed(to_future_plugin_results):
# This doesn't do anything, just lets us wait for them all to complete # This doesn't do anything, just lets us wait for them all to complete
pass pass
# Set the node health to None as no previous checks are now valid
self.zkhandler.write(
[
(
("node.monitoring.health", self.this_node.name),
None,
),
]
)