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
f"downloading result batch id: {self.id} with existing session {session}"
366
366
)
367
367
response=session.request("get", **request_data)
368
368
elifself._session_managerisnotNone:
369
369
# 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
# We pass here only chosen attributes as kwargs to make the arguments received by the factory as compliant with the HttpAdapter constructor interface as possible.
144
158
# We could consider passing the whole HttpConfig as kwarg to the factory if necessary in the future.
"""Places an active session back into the idle session stack."""
189
205
try:
190
206
self._active_sessions.remove(session)
@@ -249,11 +265,11 @@ class _RequestVerbsUsingSessionMixin(abc.ABC):
249
265
"""
250
266
Mixin that provides HTTP methods (get, post, put, etc.) mirroring requests.Session, maintaining their default argument behavior (e.g., HEAD uses allow_redirects=False).
251
267
These wrappers manage the SessionManager's use of pooled/non-pooled sessions and delegate the actual request to the corresponding session.<verb>() method.
252
-
The subclass must implement use_requests_session to yield a *requests.Session* instance.
268
+
The subclass must implement use_session to yield a *requests.Session* instance.
# This logger guarantees the payload won't be masked. Testing purpose.
483
483
rt_plain_logger.debug(f"OOB telemetry data being sent is {payload}")
484
484
485
-
# TODO(SNOW-2259522): Telemetry OOB is currently disabled. If Telemetry OOB is to be re-enabled, this HTTP call must be routed through the connection_argument.session_manager.use_requests_session(use_pooling) (so the SessionManager instance attached to the connection which initialization's fail most likely triggered this telemetry log). It would allow to pick up proxy configuration & custom headers (see tickets SNOW-694457 and SNOW-2203079).
485
+
# TODO(SNOW-2259522): Telemetry OOB is currently disabled. If Telemetry OOB is to be re-enabled, this HTTP call must be routed through the connection_argument.session_manager.use_session(use_pooling) (so the SessionManager instance attached to the connection which initialization's fail most likely triggered this telemetry log). It would allow to pick up proxy configuration & custom headers (see tickets SNOW-694457 and SNOW-2203079).
0 commit comments