This commit is contained in:
2026-04-23 20:55:27 +03:00
parent 58e36ac55c
commit 312a006312
2 changed files with 4 additions and 3 deletions

View File

@@ -495,8 +495,9 @@ def install_signal_handlers() -> None:
# СТАРТ
# =========================================================
def run_scheduler() -> None:
# install_signal_handlers()
def run_scheduler(with_signal_handlers: bool = False) -> None:
if with_signal_handlers:
install_signal_handlers()
log("[scheduler] started")
@@ -523,6 +524,5 @@ def run_scheduler() -> None:
standings_thread.join(timeout=5)
log("[scheduler] fully stopped")
if __name__ == "__main__":
run_scheduler()