Hotfix executor pool size (#4552)
parent
5013a82655
commit
c04a002c55
|
@ -109,7 +109,7 @@ class HomeAssistant(object):
|
|||
else:
|
||||
self.loop = loop or asyncio.get_event_loop()
|
||||
|
||||
self.executor = ThreadPoolExecutor(max_workers=5)
|
||||
self.executor = ThreadPoolExecutor(max_workers=EXECUTOR_POOL_SIZE)
|
||||
self.loop.set_default_executor(self.executor)
|
||||
self.loop.set_exception_handler(self._async_exception_handler)
|
||||
self._pending_tasks = []
|
||||
|
|
Loading…
Reference in New Issue