Skip to content

Commit

Permalink
tc
Browse files Browse the repository at this point in the history
  • Loading branch information
clee2000 committed Sep 13, 2024
1 parent f1cbba1 commit 039dca8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/torchci/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

@lru_cache(maxsize=1)
def get_clickhouse_client() -> Any:
endpoint = os.environ["CLICKHOUSE_ENDPOINT"]
if endpoint.startswith("https://"):
endpoint = endpoint[len("https://") :]
return clickhouse_connect.get_client(
host=os.environ["CLICKHOUSE_ENDPOINT"],
host=endpoint,
user=os.environ["CLICKHOUSE_USERNAME"],
password=os.environ["CLICKHOUSE_PASSWORD"],
secure=True,
Expand Down

0 comments on commit 039dca8

Please sign in to comment.