Skip to content

Commit

Permalink
DH-5584/updating the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Mar 13, 2024
1 parent e0ec7c3 commit 6093d2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dataherald/sql_generator/create_sql_query_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create_sql_query_status(
run_with_timeout(
db.run_sql,
args=(query,),
timeout_duration=int(os.getenv("SQL_EXECUTION_TIMEOUT", "30")),
timeout_duration=int(os.getenv("SQL_EXECUTION_TIMEOUT", "60")),
)
sql_generation.status = "VALID"
sql_generation.error = None
Expand Down
2 changes: 1 addition & 1 deletion dataherald/sql_generator/dataherald_finetuning_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _run(
self.db.run_sql,
args=(query,),
kwargs={"top_k": TOP_K},
timeout_duration=int(os.getenv("SQL_EXECUTION_TIMEOUT", "30")),
timeout_duration=int(os.getenv("SQL_EXECUTION_TIMEOUT", "60")),
)
except TimeoutError:
return "SQL query execution time exceeded, proceed without query execution"
Expand Down
2 changes: 1 addition & 1 deletion dataherald/sql_generator/dataherald_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _run(
self.db.run_sql,
args=(query,),
kwargs={"top_k": top_k},
timeout_duration=int(os.getenv("SQL_EXECUTION_TIMEOUT", "30")),
timeout_duration=int(os.getenv("SQL_EXECUTION_TIMEOUT", "60")),
)
except TimeoutError:
return "SQL query execution time exceeded, proceed without query execution"
Expand Down

0 comments on commit 6093d2f

Please sign in to comment.