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
|
# 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()
|
||||||
|
|
Loading…
Reference in New Issue