Skip to content

Commit df9422e

Browse files
committed
lint + update timeouts
1 parent 418aabf commit df9422e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

api/src/shared/common/gcp_utils.py

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

functions-python/helpers/utils.py

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

infra/functions-python/main.tf

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

0 commit comments

Comments
 (0)