Skip to content

Commit

Permalink
use same executor thread for single evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
bozokopic committed May 23, 2024
1 parent 2c578e1 commit 0f28362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "hat-controller"
version = "0.1.8"
version = "0.1.9"
description = "Hat controller"
readme = "README.rst"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion src_py/hat/controller/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self,
trigger_queue_size: int = 4096):
self._name = environment_conf['name']
self._loop = asyncio.get_running_loop()
self._executor = aio.Executor(log_exceptions=False)
self._executor = aio.Executor(1, log_exceptions=False)
self._trigger_queue = aio.Queue(trigger_queue_size)
self._proxies = {proxy.info.name: proxy for proxy in proxies}
self._last_trigger = None
Expand Down

0 comments on commit 0f28362

Please sign in to comment.