Skip to content

Commit 8ba561d

Browse files
committed
renamed queue to MATERIALIZED_VIEW_QUEUE
1 parent c88d705 commit 8ba561d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/src/shared/database/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/"

infra/functions-python/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)