summaryrefslogtreecommitdiffstats
path: root/ms/command-executor/src/main/python/server.py
diff options
context:
space:
mode:
authorBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-09-10 00:24:59 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-10 00:24:59 +0000
commit98a00a5e3fac8b2ea7a23b8265fb5d70a8b9d35f (patch)
tree98a5b290bbf2e3155b72f0a8ad47f27960431245 /ms/command-executor/src/main/python/server.py
parentea30ce882465f8e48e076fb5d057c9e07c6ec601 (diff)
parent3a80a2a714f97a90f53edb048b5b88e8fc8077ec (diff)
Merge "Revert "Use ProcessPool rather than ThreadPool Executor""
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, 3 insertions, 2 deletions
diff --git a/ms/command-executor/src/main/python/server.py b/ms/command-executor/src/main/python/server.py
index 0ed3d3266..453d751b2 100644
--- a/ms/command-executor/src/main/python/server.py
+++ b/ms/command-executor/src/main/python/server.py
@@ -1,4 +1,5 @@
-# !/usr/bin/python
+
+#!/usr/bin/python
#
# Copyright (C) 2019 Bell Canada.
@@ -42,7 +43,7 @@ def serve():
'Access denied!')
server = grpc.server(
- futures.ProcessPoolExecutor(),
+ futures.ThreadPoolExecutor(max_workers=10),
interceptors=(header_validator,))
CommandExecutor_pb2_grpc.add_CommandExecutorServiceServicer_to_server(