Hotfix executor pool size (#4552)
This commit is contained in:
parent
5013a82655
commit
c04a002c55
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue