From 694c20b0de1b05203a2f6de05f00fdae641f4de3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcin=20W=C4=85troba?= <markowanga@gmail.com>
Date: Fri, 20 Aug 2021 05:48:02 +0200
Subject: [PATCH] Remove reloader in flask services

---
 .gitignore                                                      | 2 +-
 sziszapangma/integration/service_core/asr/asr_base_processor.py | 2 +-
 .../service_core/embedding/embedding_base_processor.py          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 4686d77..6ed7d72 100644
--- a/.gitignore
+++ b/.gitignore
@@ -108,4 +108,4 @@ ENV/
 .DS_Store
 
 debug_run/
-
+publish_to_theliver.sh
diff --git a/sziszapangma/integration/service_core/asr/asr_base_processor.py b/sziszapangma/integration/service_core/asr/asr_base_processor.py
index f0763f9..ee15a08 100644
--- a/sziszapangma/integration/service_core/asr/asr_base_processor.py
+++ b/sziszapangma/integration/service_core/asr/asr_base_processor.py
@@ -64,4 +64,4 @@ class AsrBaseProcessor(ABC):
         app.route("/process_asr", methods=["POST"])(auth.login_required(self.process_request))
         app.route("/health_check", methods=["GET"])(self.health_check)
         port = int(os.environ[_SERVICE_PORT]) if _SERVICE_PORT in os.environ else 5000
-        app.run(debug=True, host="0.0.0.0", port=port)
+        app.run(debug=True, host="0.0.0.0", port=port, use_reloader=False)
diff --git a/sziszapangma/integration/service_core/embedding/embedding_base_processor.py b/sziszapangma/integration/service_core/embedding/embedding_base_processor.py
index 7c10db1..7d5aa97 100644
--- a/sziszapangma/integration/service_core/embedding/embedding_base_processor.py
+++ b/sziszapangma/integration/service_core/embedding/embedding_base_processor.py
@@ -53,4 +53,4 @@ class EmbeddingBaseProcessor(ABC):
         )
         app.route("/health_check", methods=["GET"])(self.health_check)
         port = int(os.environ[_SERVICE_PORT]) if _SERVICE_PORT in os.environ else 5000
-        app.run(debug=True, host="0.0.0.0", port=port)
+        app.run(debug=True, host="0.0.0.0", port=port, use_reloader=False)
-- 
GitLab