Skip to content

Commit d54b084

Browse files
review @GitHK
1 parent 18ec259 commit d54b084

File tree

1 file changed

+4
-1
lines changed
  • services/web/server/src/simcore_service_webserver/fogbugz

1 file changed

+4
-1
lines changed

services/web/server/src/simcore_service_webserver/fogbugz/_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ async def reopen_case(self, case_id: str, assigned_fogbugz_person_id: str) -> No
158158

159159

160160
_APP_KEY = f"{__name__}.{FogbugzRestClient.__name__}"
161+
_FOGBUGZ_TIMEOUT: float = Field(
162+
default=45.0, description="API request timeout in seconds"
163+
)
161164

162165

163166
async def setup_fogbugz_rest_client(app: web.Application) -> None:
@@ -190,7 +193,7 @@ async def setup_fogbugz_rest_client(app: web.Application) -> None:
190193
product.name,
191194
)
192195

193-
httpx_client = httpx.AsyncClient()
196+
httpx_client = httpx.AsyncClient(timeout=_FOGBUGZ_TIMEOUT)
194197
client = FogbugzRestClient(
195198
client=httpx_client,
196199
api_token=settings.FOGBUGZ_API_TOKEN,

0 commit comments

Comments
 (0)