From 821014211fea96bf89327f28e1157345b896a408 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Sat, 30 Mar 2019 22:55:26 +0300 Subject: [PATCH] Change constant executors number to None #490 --- analytics/analytics/analytic_unit_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/analytics/analytics/analytic_unit_manager.py b/analytics/analytics/analytic_unit_manager.py index 64b9f27..7167a7e 100644 --- a/analytics/analytics/analytic_unit_manager.py +++ b/analytics/analytics/analytic_unit_manager.py @@ -11,7 +11,6 @@ from models import ModelCache logger = log.getLogger('AnalyticUnitManager') -WORKERS_EXECUTORS = 20 AnalyticUnitId = str @@ -43,7 +42,7 @@ class AnalyticUnitManager: def __init__(self): self.analytic_workers: Dict[AnalyticUnitId, AnalyticUnitWorker] = dict() - self.workers_executor = ThreadPoolExecutor(max_workers=WORKERS_EXECUTORS) + self.workers_executor = ThreadPoolExecutor() def __ensure_worker( self,