delete TIMEOUT event as soon as we get it

This commit is contained in:
ahmadbilalkhalid 2019-07-25 18:29:41 +05:00
parent bde254eccf
commit 92faf9e04e

View file

@ -177,6 +177,7 @@ def main(vm_prefix, host_prefix):
e_status = e.value["status"]
if e_status == "TIMEOUT":
client.client.delete(e.key)
logging.info("Timeout")
hosts = client.get_prefix(host_prefix, value_in_json=True)
dead_hosts = dead_host_detection(hosts)