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
# If connection was explicitly passed and not closed yet - we can reuse SessionManager with session pooling
363
-
withconnection.rest.use_session() assession:
363
+
withconnection.rest.use_session(
364
+
request_data["url"]
365
+
) assession:
364
366
logger.debug(
365
367
f"downloading result batch id: {self.id} with existing session {session}"
366
368
)
367
369
response=session.request("get", **request_data)
368
370
elifself._session_managerisnotNone:
369
371
# If connection is not accessible or was already closed, but cursors are now used to fetch the data - we will only reuse the http setup (through cloned SessionManager without session pooling)
# If there was no session manager cloned, then we are using a default Session Manager setup, since it is very unlikely to enter this part outside of testing
374
378
logger.debug(
375
379
f"downloading result batch id: {self.id} with new session through local session manager"
0 commit comments