Add one final keepalive update before exiting

This commit is contained in:
Joshua Boniface 2019-05-23 23:18:43 -04:00
parent 4c5ce9b995
commit e8b666708c
1 changed files with 5 additions and 2 deletions

View File

@ -459,10 +459,13 @@ zk_conn.add_listener(zk_listener)
# Cleanup function # Cleanup function
def cleanup(): def cleanup():
logger.out('Terminating pvcd and cleaning up', state='s')
global zk_conn, update_timer, d_domains 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 # Stop keepalive thread
try: try:
stopKeepaliveTimer() stopKeepaliveTimer()