PyroClient overhaul

This commit is contained in:
2023-05-26 16:32:56 +02:00
parent 754129e046
commit 2d941e2cb3
7 changed files with 254 additions and 65 deletions

View File

@@ -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()