From 3bad003b0750b3379379574cbae444bbc21c325f Mon Sep 17 00:00:00 2001 From: Parker Erickson Date: Wed, 4 Dec 2024 19:41:18 -0600 Subject: [PATCH 1/2] feat(async req): remove timeout --- pyTigerGraph/pytgasync/pyTigerGraphBase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyTigerGraph/pytgasync/pyTigerGraphBase.py b/pyTigerGraph/pytgasync/pyTigerGraphBase.py index 795dd715..228494ef 100644 --- a/pyTigerGraph/pytgasync/pyTigerGraphBase.py +++ b/pyTigerGraph/pytgasync/pyTigerGraphBase.py @@ -133,7 +133,7 @@ async def _req(self, method: str, url: str, authMode: str = "token", headers: di _headers, _data, verify = self._prep_req( authMode, headers, url, method, data) - async with httpx.AsyncClient() as client: + async with httpx.AsyncClient(timeout=None) as client: if jsonData: res = await client.request(method, url, headers=_headers, json=_data, params=params) else: @@ -161,7 +161,7 @@ async def _req(self, method: str, url: str, authMode: str = "token", headers: di else: url = newRestppUrl + '/' + \ '/'.join(url.split(':')[2].split('/')[1:]) - async with httpx.AsyncClient() as client: + async with httpx.AsyncClient(timeout=None) as client: if jsonData: res = await client.request(method, url, headers=_headers, json=_data, params=params) else: From 4a8b4f7e53534d724280a7f6c24d50caa1eb5a2e Mon Sep 17 00:00:00 2001 From: Parker Erickson Date: Wed, 4 Dec 2024 19:45:25 -0600 Subject: [PATCH 2/2] bump version --- pyTigerGraph/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyTigerGraph/__init__.py b/pyTigerGraph/__init__.py index 9a7743d0..9b2aef54 100644 --- a/pyTigerGraph/__init__.py +++ b/pyTigerGraph/__init__.py @@ -2,6 +2,6 @@ from pyTigerGraph.pytgasync.pyTigerGraph import AsyncTigerGraphConnection from pyTigerGraph.common.exception import TigerGraphException -__version__ = "1.8.1" +__version__ = "1.8.3" __license__ = "Apache 2"