mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 22:54:23 +01:00
@@ -16,9 +16,10 @@ logger = Logger("Daemon")
|
|||||||
|
|
||||||
|
|
||||||
def handle_signals(signal_received, frame):
|
def handle_signals(signal_received, frame):
|
||||||
logger.info("Shutting down PISA")
|
logger.info("Closing connection with appointments db")
|
||||||
# TODO: #11-add-graceful-shutdown: add code to close the db, free any resources, etc.
|
db_manager.db.close()
|
||||||
|
|
||||||
|
logger.info("Shutting down PISA")
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user