-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Prerequisites
- I've searched the current open issues
- I've updated to the latest version of Toolbox
- I've updated to the latest version of the SDK
Toolbox version
0.20.0
Environment
- OS type and version: GCP enviroment
- How are you running Toolbox:
- As a container is deployed with cloud run
- Python version 3.10
Client
- Client: toolbox-core
- Version: 0.5.2
Expected Behavior
No runtime error
Current Behavior
Runtime error Timeout context manager should be used inside a task
Steps to reproduce?
This issue happens sometime when we have multiple session request to the agent at the same time. I think the cause from load tool in tool box client.
Additional Details
File "/home/appuser/.cache/pypoetry/virtualenvs/reasoning-engine-assembly-service-MATOk_fk-py3.10/lib/python3.10/site-packages/toolbox_core/sync_tool.py", line 145, in __call__
return asyncio.run_coroutine_threadsafe(coro, self.__loop).result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/home/appuser/.cache/pypoetry/virtualenvs/reasoning-engine-assembly-service-MATOk_fk-py3.10/lib/python3.10/site-packages/toolbox_core/tool.py", line 294, in __call__
async with self.__session.post(
File "/home/appuser/.cache/pypoetry/virtualenvs/reasoning-engine-assembly-service-MATOk_fk-py3.10/lib/python3.10/site-packages/aiohttp/client.py", line 1510, in __aenter__
self._resp: _RetType = await self._coro
File "/home/appuser/.cache/pypoetry/virtualenvs/reasoning-engine-assembly-service-MATOk_fk-py3.10/lib/python3.10/site-packages/aiohttp/client.py", line 624, in _request
with timer:
File "/home/appuser/.cache/pypoetry/virtualenvs/reasoning-engine-assembly-service-MATOk_fk-py3.10/lib/python3.10/site-packages/aiohttp/helpers.py", line 678, in __enter__
raise RuntimeError("Timeout context manager should be used inside a task")
RuntimeError: Timeout context manager should be used inside a task"
Metadata
Metadata
Assignees
Labels
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.