diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2015-01-19 15:27:10 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2015-01-19 15:27:10 +0100 |
commit | 90e280b1e8e792bc39d47f2fcef4d7f9267081cd (patch) | |
tree | 1909bdeb2e25fe5190e2f908c46e54d36c72db82 | |
parent | 7581615f30bd051da82ca1a3ae5d6223ca0d1115 (diff) |
max_workers cannot be VM-handled.file-upload
* Lower default value.
Change-Id: Ib1d3606c691388f699bfcc68023b4154b86ed667
-rwxr-xr-x | app/server.py | 4 |
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, |