make sure to close session in monitoring
This commit is contained in:
parent
a64a70cbc8
commit
ed089109bb
|
@ -50,6 +50,7 @@ if __name__ == "__main__":
|
||||||
while True:
|
while True:
|
||||||
log_postfix_metrics()
|
log_postfix_metrics()
|
||||||
log_nb_db_connection()
|
log_nb_db_connection()
|
||||||
|
Session.close()
|
||||||
|
|
||||||
# 1 min
|
# 1 min
|
||||||
sleep(60)
|
sleep(60)
|
||||||
|
|
Loading…
Reference in a new issue