File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def create_refresh_materialized_view_task():
152152 client = tasks_v2 .CloudTasksClient ()
153153 project = os .getenv ("PROJECT_ID" )
154154 location = os .getenv ("LOCATION" )
155- queue = os .getenv ("QUEUE_NAME " )
155+ queue = os .getenv ("MATERIALIZED_VIEW_QUEUE " )
156156 url = (
157157 f"https://{ os .getenv ('GCP_REGION' )} -"
158158 f"{ os .getenv ('PROJECT_ID' )} .cloudfunctions.net/"
Original file line number Diff line number Diff line change @@ -1223,6 +1223,7 @@ resource "google_cloudfunctions2_function" "tasks_executor" {
12231223 PROJECT_ID = var.project_id
12241224 ENV = var.environment
12251225 PUBSUB_TOPIC_NAME = " rebuild-bounding-boxes-topic"
1226+ MATERIALIZED_VIEW_QUEUE = google_cloud_tasks_queue.refresh_materialized_view_task_queue.name
12261227 }
12271228 available_memory = local. function_tasks_executor_config . memory
12281229 timeout_seconds = local. function_tasks_executor_config . timeout
You can’t perform that action at this time.
0 commit comments