increase pashub fetcher timeout to 5 mins

This commit is contained in:
Daniel Roth 2026-06-04 15:12:29 +00:00
parent bdae83b715
commit ab465bf010
3 changed files with 9 additions and 1 deletions

View file

@ -61,7 +61,7 @@ SHAREPOINT_SITE: str = "ECO"
def _build_requests(excel_path: str) -> list[PashubToAraTriggerRequest]:
wb = load_workbook(excel_path, data_only=True)
ws = wb.worksheets[1]
ws = wb.worksheets[0]
headers: dict[str, int] = {}
for col in range(1, ws.max_column + 1):
@ -107,6 +107,7 @@ def _build_requests(excel_path: str) -> list[PashubToAraTriggerRequest]:
deal_stage=deal_stage,
sharepoint_link=SHAREPOINT_PROPERTIES_FOLDER or None,
sharepoint_site=SHAREPOINT_SITE,
get_other_files=True,
)
)

View file

@ -22,6 +22,7 @@ module "lambda" {
stage = var.stage
image_uri = local.image_uri
timeout = var.timeout
# Optional: Set maximum_concurrency to limit concurrent SQS-triggered invocations (2-1000)
maximum_concurrency = var.maximum_concurrency

View file

@ -17,6 +17,12 @@ variable "image_digest" {
description = "Image digest (sha256:...)"
}
variable "timeout" {
type = number
default = 300
description = "Lambda timeout in seconds."
}
variable "maximum_concurrency" {
type = number
default = null