File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ def create_http_task_with_name(
8383):
8484 """Creates a GCP Cloud Task."""
8585 from google .protobuf import duration_pb2
86+
8687 token = tasks_v2 .OidcToken (service_account_email = os .getenv ("SERVICE_ACCOUNT_EMAIL" ))
8788
8889 parent = client .queue_path (project_id , gcp_region , queue_name )
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ def create_http_task(
217217 task_name = None , # No specific task name provided
218218 task_time = proto_time ,
219219 http_method = tasks_v2 .HttpMethod .POST ,
220- timeout_s = timeout_s
220+ timeout_s = timeout_s ,
221221 )
222222
223223
Original file line number Diff line number Diff line change @@ -1024,7 +1024,7 @@ resource "google_cloudfunctions2_function" "reverse_geolocation_processor" {
10241024 DATASETS_BUCKET_NAME_GBFS = " ${ var . gbfs_bucket_name } -${ var . environment } "
10251025 }
10261026 available_memory = local. function_reverse_geolocation_config . available_memory
1027- timeout_seconds = 3600
1027+ timeout_seconds = 1700
10281028 available_cpu = local. function_reverse_geolocation_config . available_cpu
10291029 max_instance_request_concurrency = local. function_reverse_geolocation_config . max_instance_request_concurrency
10301030 max_instance_count = 10
You can’t perform that action at this time.
0 commit comments