Merge pull request #1173 from Hestia-Homes/bug/pashub-fetcher-correctly-writes-to-sharepoint

Increase pashub fetcher timeout to 5 mins
This commit is contained in:
Daniel Roth 2026-06-04 16:14:35 +01:00 committed by GitHub
commit 6e986b76cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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