From d0c3cb553bc009bd4e10941203e1cd5b922c3978 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 9 Mar 2017 20:28:15 +0100 Subject: start more workers with smaller batches --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api.py') diff --git a/api.py b/api.py index e7e690d..6d3a170 100644 --- a/api.py +++ b/api.py @@ -82,11 +82,11 @@ class Compiler(joblib.worker.Worker): async def startup(): - for _ in range(1): + for _ in range(3): worker = Compiler() await worker.connect(db_config, queue_db) await worker.setup() - await worker.start(batchlimit=750) + await worker.start(batchlimit=20) logging.basicConfig( -- cgit v1.3.1