Browse Source

Change constant executors number to None #490

pull/1/head
Coin de Gamma 6 years ago
parent
commit
821014211f
  1. 3
      analytics/analytics/analytic_unit_manager.py

3
analytics/analytics/analytic_unit_manager.py

@ -11,7 +11,6 @@ from models import ModelCache
logger = log.getLogger('AnalyticUnitManager') logger = log.getLogger('AnalyticUnitManager')
WORKERS_EXECUTORS = 20
AnalyticUnitId = str AnalyticUnitId = str
@ -43,7 +42,7 @@ class AnalyticUnitManager:
def __init__(self): def __init__(self):
self.analytic_workers: Dict[AnalyticUnitId, AnalyticUnitWorker] = dict() self.analytic_workers: Dict[AnalyticUnitId, AnalyticUnitWorker] = dict()
self.workers_executor = ThreadPoolExecutor(max_workers=WORKERS_EXECUTORS) self.workers_executor = ThreadPoolExecutor()
def __ensure_worker( def __ensure_worker(
self, self,

Loading…
Cancel
Save