From 8c4396c505ea245af4a542cf87b185a010484f5f Mon Sep 17 00:00:00 2001 From: "francois.cellier" Date: Mon, 12 Mar 2018 17:00:47 +0100 Subject: use the threading capability of Flask app; set the number of manager to 1 Change-Id: Ia700f83898de33372c52969f774ee8aa642ee36c --- moon_orchestrator/Changelog | 4 ++++ moon_orchestrator/moon_orchestrator/__init__.py | 2 +- moon_orchestrator/moon_orchestrator/http_server.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'moon_orchestrator') diff --git a/moon_orchestrator/Changelog b/moon_orchestrator/Changelog index 31aabf5d..783c9130 100644 --- a/moon_orchestrator/Changelog +++ b/moon_orchestrator/Changelog @@ -23,3 +23,7 @@ CHANGES ----- - add bootstrap file to start Orchestrator with all configuration +4.4.1 +----- +- the processing of a request is now performed in a thread + diff --git a/moon_orchestrator/moon_orchestrator/__init__.py b/moon_orchestrator/moon_orchestrator/__init__.py index 85c245e0..bc8f2781 100644 --- a/moon_orchestrator/moon_orchestrator/__init__.py +++ b/moon_orchestrator/moon_orchestrator/__init__.py @@ -3,4 +3,4 @@ # license which can be found in the file 'LICENSE' in this package distribution # or at 'http://www.apache.org/licenses/LICENSE-2.0'. -__version__ = "4.4.0" +__version__ = "4.4.1" diff --git a/moon_orchestrator/moon_orchestrator/http_server.py b/moon_orchestrator/moon_orchestrator/http_server.py index 85e29cd0..1cb12618 100644 --- a/moon_orchestrator/moon_orchestrator/http_server.py +++ b/moon_orchestrator/moon_orchestrator/http_server.py @@ -158,7 +158,7 @@ class HTTPServer(Server): }) def run(self): - self.app.run(host=self._host, port=self._port) # nosec + self.app.run(host=self._host, port=self._port, threaded=True) # nosec @staticmethod def __filter_str(data): -- cgit 1.2.3-korg