PyroClient overhaul
This commit is contained in:
4
main.py
4
main.py
@@ -2,7 +2,8 @@ import contextlib
|
||||
import logging
|
||||
from os import getpid
|
||||
|
||||
from modules.app import PyroClient
|
||||
from classes.pyroclient import PyroClient
|
||||
from modules.scheduler import scheduler
|
||||
|
||||
# Uncomment this and the line below client declaration
|
||||
# in order to use context manager in your commands.
|
||||
@@ -32,6 +33,7 @@ def main():
|
||||
except KeyboardInterrupt:
|
||||
logger.warning("Forcefully shutting down with PID %s...", getpid())
|
||||
finally:
|
||||
scheduler.shutdown()
|
||||
exit()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user