Skip to content

Commit

Permalink
DH-4761 [ai][server] Increase timeout for GET table-descriptions endp…
Browse files Browse the repository at this point in the history
…oint (#188)
  • Loading branch information
jcjc712 authored and DishenWang2023 committed May 7, 2024
1 parent 3755652 commit ea1bf7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/ai/server/modules/table_description/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def get_table_descriptions(
response = await client.get(
settings.k2_core_url + "/table-descriptions",
params={"db_connection_id": db_connection_id, "table_name": table_name},
timeout=60,
timeout=settings.default_k2_core_timeout,
)
raise_for_status(response.status_code, response.text)
return [TableDescriptionResponse(**td) for td in response.json()]
Expand All @@ -38,7 +38,7 @@ async def get_database_table_descriptions(self, db_connection_id: str):
response = await client.get(
settings.k2_core_url + "/table-descriptions",
params={"db_connection_id": db_connection_id, "table_name": ""},
timeout=60,
timeout=settings.default_k2_core_timeout,
)
raise_for_status(response.status_code, response.text)
db_connection = self.db_connection_service.get_db_connection(
Expand Down

0 comments on commit ea1bf7a

Please sign in to comment.