The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(gateway): type the housekeeping pool as an Executor
kshitijk4poord9154366571e
diff --git a/gateway/run.py b/gateway/run.pyindex 6b473917e6b..6c9556d10f2 100644--- a/gateway/run.py+++ b/gateway/run.py@@ -4339,7 +4339,7 @@ class GatewayRunner(return GatewayRunner._get_or_create_pool(self, "_executor", lambda: _UnboundedThreadExecutor(thread_name_prefix="hermes-gateway"))- def _get_housekeeping_executor(self) -> concurrent.futures.ThreadPoolExecutor:+ def _get_housekeeping_executor(self) -> concurrent.futures.Executor:"""Return the gateway-owned executor for best-effort session housekeeping."""return GatewayRunner._get_or_create_pool(self, "_housekeeping_executor",diff --git a/tests/gateway/test_executor_pool_isolation.py b/tests/gateway/test_executor_pool_isolation.pyindex 8c3f2b49bbb..ef27c72b275 100644--- a/tests/gateway/test_executor_pool_isolation.py+++ b/tests/gateway/test_executor_pool_isolation.py@@ -25,6 +25,7 @@ import pytestfrom gateway.run import GatewayRunner+def _runner(cleanup=None, *, cleanup_timeout=0.5):runner = GatewayRunner.__new__(GatewayRunner)runner._executor_lock = threading.Lock()