summaryrefslogtreecommitdiffstats
path: root/ms/command-executor/src/main/python/server.py
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2019-09-02 14:36:25 -0400
committerAlexis de Talhouët <adetalhouet89@gmail.com>2019-09-03 13:03:22 +0000
commitcd29a05ccd4279d7fb740d03bbeee6a0839b287e (patch)
treeb8784a8162807da0d87ca80663659fbdbaa043dd /ms/command-executor/src/main/python/server.py
parent240f25e7fd15209cf298f640bb856793854fa32f (diff)
Use ProcessPool rather than ThreadPool Executor
Change-Id: I66a800bf30cabce35123b0ac24b3b3e00eef6026 Issue-ID: CCSDK-1681 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Diffstat (limited to 'ms/command-executor/src/main/python/server.py')
-rw-r--r--ms/command-executor/src/main/python/server.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ms/command-executor/src/main/python/server.py b/ms/command-executor/src/main/python/server.py
index 453d751b2..0ed3d3266 100644
--- a/ms/command-executor/src/main/python/server.py
+++ b/ms/command-executor/src/main/python/server.py
@@ -1,5 +1,4 @@
-
-#!/usr/bin/python
+# !/usr/bin/python
#
# Copyright (C) 2019 Bell Canada.
@@ -43,7 +42,7 @@ def serve():
'Access denied!')
server = grpc.server(
- futures.ThreadPoolExecutor(max_workers=10),
+ futures.ProcessPoolExecutor(),
interceptors=(header_validator,))
CommandExecutor_pb2_grpc.add_CommandExecutorServiceServicer_to_server(