Skip to content

Commit 6e372ac

Browse files
committed
feat: timeout for nebula query 5s->10s
1 parent 0ac8355 commit 6e372ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memos/graph_dbs/nebular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(self, config: NebulaGraphDBConfig):
159159
logger.info("Connected to NebulaGraph successfully.")
160160

161161
@timed
162-
def execute_query(self, gql: str, timeout: float = 5.0, auto_set_db: bool = True):
162+
def execute_query(self, gql: str, timeout: float = 10.0, auto_set_db: bool = True):
163163
needs_use_prefix = ("SESSION SET GRAPH" not in gql) and ("USE " not in gql)
164164
use_prefix = f"USE `{self.db_name}` " if auto_set_db and needs_use_prefix else ""
165165

0 commit comments

Comments
 (0)