diff options
author | 2019-09-04 15:44:57 +0000 | |
---|---|---|
committer | 2019-09-04 15:44:57 +0000 | |
commit | 82089df8930c27c3ef2dfa36e9b1a08e3e1d4fdd (patch) | |
tree | 6d1db07a188661763801caffb9e19e62302c943b /ms/command-executor/src/main/python/server.py | |
parent | e7bf7d75109cc3af5c15c36110c7831b4196f5ca (diff) | |
parent | cd29a05ccd4279d7fb740d03bbeee6a0839b287e (diff) |
Merge "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.py | 5 |
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( |