Skip to content

AttributeError: '_TelemetryClientHolder' object has no attribute 'close' #52

Description

@Bidek56

After creating engine with "enable_telemetry": False using:

engine = create_engine(
            f"databricks://token:{self.token}@{self.host}?http_path={self.http_path}",
            connect_args={"enable_telemetry": False},
            pool_pre_ping=True, echo_pool=True, pool_recycle=1800 # Recycle connections after 30min
        )

I get this error at: "/databricks/sql/telemetry/telemetry_client.py", line 546, in _handle_unhandled_exception: client.close()
AttributeError: '_TelemetryClientHolder' object has no attribute 'close'
Since I have "enable_telemetry": False why is this code getting executed at all? Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions