From 71b304fa47ce66be166167d05a74bc13bc373485 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Mon, 29 Jun 2026 13:32:53 +0000 Subject: [PATCH] decrease lambda concurrency from 32 to 12 --- deployment/terraform/lambda/modelling_e2e/variables.tf | 2 +- scripts/trigger_modelling_e2e_sqs.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment/terraform/lambda/modelling_e2e/variables.tf b/deployment/terraform/lambda/modelling_e2e/variables.tf index 2595d86c..bcade99c 100644 --- a/deployment/terraform/lambda/modelling_e2e/variables.tf +++ b/deployment/terraform/lambda/modelling_e2e/variables.tf @@ -26,7 +26,7 @@ variable "reserved_concurrent_executions" { variable "maximum_concurrency" { type = number - default = 32 + default = 12 description = "Maximum concurrent Lambda invocations from the SQS trigger." } diff --git a/scripts/trigger_modelling_e2e_sqs.py b/scripts/trigger_modelling_e2e_sqs.py index e0d060d9..a4c6a4df 100644 --- a/scripts/trigger_modelling_e2e_sqs.py +++ b/scripts/trigger_modelling_e2e_sqs.py @@ -43,15 +43,15 @@ COMPLETED_SINCE: datetime | None = datetime( DRY_RUN: bool = False # False → Lambda skips the Google Solar fetch (re-uses stored Solar data). -REFETCH_SOLAR: bool = True +REFETCH_SOLAR: bool = False # False → use stored lodged EPC for properties that have one; properties with no # stored lodged EPC are treated as EPC-less and routed to prediction (no API call). -REFETCH_EPC: bool = True +REFETCH_EPC: bool = False # False → use stored predicted EPC for EPC-less properties that have one; live # prediction still runs when no stored predicted EPC exists for the property. -REPREDICT_EPC: bool = True +REPREDICT_EPC: bool = False # --------------------------------------------------------------------------- _REPO_ROOT = Path(__file__).resolve().parents[1]