Skip to content

Commit bc25477

Browse files
committed
fetch cache bucket name from gcp env
1 parent f4f5640 commit bc25477

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/webapp/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"INITIAL_API_KEY_ID": "",
1616
"CATALOG_NAME": "",
1717
"SQL_WAREHOUSE_ID": "",
18+
"GCP_CACHE_BUCKET": "",
1819
}
1920

2021
# The INSTANCE_HOST is the private IP of CLoudSQL instance e.g. '127.0.0.1' ('172.17.0.1' if deployed to GAE Flex)

src/webapp/databricks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def fetch_table_data(
336336
google_service_account=gcs_vars["GCP_SERVICE_ACCOUNT_EMAIL"],
337337
)
338338

339-
bucket_name = "edvise_databricks_results_api_cache"
339+
bucket_name = databricks_vars["GCP_CACHE_BUCKET"]
340340
schema = databricksify_inst_name(inst_name)
341341
table_fqn = f"`{catalog_name}`.`{schema}_silver`.`{table_name}`"
342342
sql = f"SELECT * FROM {table_fqn}"

0 commit comments

Comments
 (0)