Add one final keepalive update before exiting
This commit is contained in:
parent
4c5ce9b995
commit
e8b666708c
|
@ -459,10 +459,13 @@ zk_conn.add_listener(zk_listener)
|
|||
|
||||
# Cleanup function
|
||||
def cleanup():
|
||||
logger.out('Terminating pvcd and cleaning up', state='s')
|
||||
|
||||
global zk_conn, update_timer, d_domains
|
||||
|
||||
logger.out('Performing final keepalive update', state='s')
|
||||
update_zookeeper()
|
||||
|
||||
logger.out('Terminating pvcd and cleaning up', state='s')
|
||||
|
||||
# Stop keepalive thread
|
||||
try:
|
||||
stopKeepaliveTimer()
|
||||
|
|
Loading…
Reference in New Issue