aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-01-19 15:27:10 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-01-19 15:27:10 +0100
commit90e280b1e8e792bc39d47f2fcef4d7f9267081cd (patch)
tree1909bdeb2e25fe5190e2f908c46e54d36c72db82
parent7581615f30bd051da82ca1a3ae5d6223ca0d1115 (diff)
downloadkernel-ci-backend-file-upload.tar.gz
max_workers cannot be VM-handled.file-upload
* Lower default value. Change-Id: Ib1d3606c691388f699bfcc68023b4154b86ed667
-rwxr-xr-xapp/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/server.py b/app/server.py
index c18b7a0..4b3cf26 100755
--- a/app/server.py
+++ b/app/server.py
@@ -36,7 +36,7 @@ DEFAULT_CONFIG_FILE = "/etc/linaro/kernelci-backend.cfg"
topt.define(
"master_key", default=str(uuid.uuid4()), type=str, help="The master key")
topt.define(
- "max_workers", default=None, type=int,
+ "max_workers", default=5, type=int,
help="The number of workers for the thread pool executor"
)
topt.define("gzip", default=True)
@@ -119,7 +119,7 @@ class KernelCiBackend(tornado.web.Application):
"mailoptions": mail_options,
"default_handler_class": happ.AppHandler,
"executor": concurrent.futures.ThreadPoolExecutor(
- max_workers=topt.options.max_workers),
+ topt.options.max_workers),
"gzip": topt.options.gzip,
"debug": topt.options.debug,
"master_key": topt.options.master_key,