Skip to content

Commit 2765f5a

Browse files
committed
Increase poll interval
on average we see 30s creation time right now. with 125 request, we dont need to poll as often on initial creation
1 parent 5009e8a commit 2765f5a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@
1212

1313
## Improvements
1414

15+
* Reduce calls to the Aura API during GdsSessions::get_or_create
16+
1517

1618
## Other changes

graphdatascience/session/aura_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def list_sessions(self, dbid: Optional[str] = None) -> list[SessionDetails]:
164164
def wait_for_session_running(
165165
self,
166166
session_id: str,
167-
sleep_time: float = 0.2,
167+
sleep_time: float = 1.0,
168168
max_sleep_time: float = 10,
169169
max_wait_time: float = math.inf,
170170
) -> WaitResult:

graphdatascience/tests/unit/test_dedicated_sessions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def list_instance(self, instance_id: str) -> Optional[InstanceSpecificDetails]:
194194
def wait_for_session_running(
195195
self,
196196
session_id: str,
197-
sleep_time: float = 0.2,
197+
sleep_time: float = 1.0,
198198
max_sleep_time: float = 5,
199199
max_wait_time: float = 5,
200200
) -> WaitResult:

0 commit comments

Comments
 (0)