You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Estimates the memory required for a session with the given node and relationship counts.
@@ -86,6 +89,7 @@ def get_or_create(
86
89
db_connection: DbmsConnectionInfo,
87
90
ttl: Optional[timedelta] =None,
88
91
cloud_location: Optional[CloudLocation] =None,
92
+
timeout: Optional[int] =None,
89
93
) ->AuraGraphDataScience:
90
94
"""
91
95
Retrieves an existing session with the given session name and database connection,
@@ -98,13 +102,16 @@ def get_or_create(
98
102
session_name (str): The name of the session.
99
103
memory (SessionMemory): The size of the session specified by memory.
100
104
db_connection (DbmsConnectionInfo): The database connection information.
101
-
ttl: Optional[timedelta]: The sessions time to live after inactivity in seconds.
105
+
ttl: (Optional[timedelta]): The sessions time to live after inactivity in seconds.
102
106
cloud_location (Optional[CloudLocation]): The cloud location. Required if the GDS session is for a self-managed database.
107
+
timeout (Optional[int]): Optional timeout (in seconds) when waiting for session to become ready. If unset the method will wait forever. If set and session does not become ready an exception will be raised. It is user responsibility to ensure resource gets cleaned up in this situation.
0 commit comments