We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fffac5f commit b77208aCopy full SHA for b77208a
src/databricks/sql/telemetry/telemetry_client.py
@@ -398,7 +398,9 @@ def close_telemetry_client(session_id_hex):
398
"""Remove the telemetry client for a specific connection"""
399
global _initialized, _executor
400
with _lock:
401
- if (telemetry_client := _clients.pop(session_id_hex, None)) is not None:
+ # if (telemetry_client := _clients.pop(session_id_hex, None)) is not None:
402
+ if session_id_hex in _clients:
403
+ telemetry_client = _clients.pop(session_id_hex)
404
logger.debug("Removing telemetry client for connection %s", session_id_hex)
405
telemetry_client.close()
406
0 commit comments