Skip to content

Commit 7763aa4

Browse files
committed
add topic name to env vars
1 parent c66136c commit 7763aa4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

functions-python/operations_api/src/feeds_operations/impl/feeds_operations_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
from .models.operation_gtfs_rt_feed_impl import OperationGtfsRtFeedImpl
7575
from .request_validator import validate_request
7676

77-
pubsub_topic_name = os.getenv("BASH_PROCESS_DATASET_PUBSUB_TOPIC_NAME")
77+
pubsub_topic_name = os.getenv("DATASET_PROCESSING_TOPIC_NAME")
7878
project_id = os.getenv("PROJECT_ID")
7979

8080

infra/functions-python/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ resource "google_cloudfunctions2_function" "operations_api" {
723723
PROJECT_ID = var.project_id
724724
PYTHONNODEBUGRANGES = 0
725725
GOOGLE_CLIENT_ID = var.operations_oauth2_client_id
726+
DATASET_PROCESSING_TOPIC_NAME = "datasets-batch-topic-${var.environment}"
726727
}
727728
available_memory = local.function_operations_api_config.memory
728729
timeout_seconds = local.function_operations_api_config.timeout

0 commit comments

Comments
 (0)