From e4d83d35ebf58532869ef265028243eea93ea6ba Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Sun, 5 May 2024 16:44:09 -0300 Subject: [PATCH] debug: without check uploader in server.py --- server.py | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/server.py b/server.py index ebeb388e..f25f2982 100644 --- a/server.py +++ b/server.py @@ -1,4 +1,3 @@ -import subprocess from granian.constants import Interfaces from granian.server import Granian @@ -13,15 +12,12 @@ def is_docker_container_running(name): if __name__ == "__main__": logger.info("started") - if is_docker_container_running('uploader'): - granian_instance = Granian( - "main:app", - address="0.0.0.0", # noqa S104 - port=PORT, - threads=4, - websockets=False, - interface=Interfaces.ASGI, - ) - granian_instance.serve() - else: - logger.info("'uploader' is not running. But very needed !!! \(^.^'\)") \ No newline at end of file + granian_instance = Granian( + "main:app", + address="0.0.0.0", # noqa S104 + port=PORT, + threads=4, + websockets=False, + interface=Interfaces.ASGI, + ) + granian_instance.serve() \ No newline at end of file