[host] get ourselves from etcd

This commit is contained in:
Nico Schottelius 2019-12-31 14:13:08 +01:00
parent e775570884
commit 2566e86f1e
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ def main(hostname):
host_key, host_entry, value_in_json=True
)
# update, get ourselves now for sure
host = next(filter(lambda h: h.hostname == hostname, host_pool.hosts), None)
try:
heartbeat_updating_process = mp.Process(target=update_heartbeat, args=(hostname,))
heartbeat_updating_process.start()