From 8c56091af7d2fc23cf2a44c85ee210d31de56120 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 23 Nov 2016 18:52:03 +0100 Subject: [PATCH 1/3] Hotfix executor pool size (#4552) --- homeassistant/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index f7847228338..50c805e2548 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -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 = [] From 58eb0ec52ad8c827d7fc94a827e3fa951eead852 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 24 Nov 2016 14:56:33 -0800 Subject: [PATCH 2/3] Set executor pool size to 10 (#4571) --- homeassistant/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index 50c805e2548..8361c031eec 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -56,7 +56,7 @@ SERVICE_CALL_LIMIT = 10 # seconds ENTITY_ID_PATTERN = re.compile(r"^(\w+)\.(\w+)$") # Size of a executor pool -EXECUTOR_POOL_SIZE = 15 +EXECUTOR_POOL_SIZE = 10 # Time for cleanup internal pending tasks TIME_INTERVAL_TASKS_CLEANUP = 10 From 44b6d23e0f075d42eaf5edf1fb85acddeba9ef0a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 24 Nov 2016 14:57:12 -0800 Subject: [PATCH 3/3] Version bump to 0.33.4 --- homeassistant/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index c845a561d0a..c606bf5d94d 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 33 -PATCH_VERSION = '3' +PATCH_VERSION = '4' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) REQUIRED_PYTHON_VER = (3, 4, 2)