Merge pull request #591 from Hestia-Homes/eco-eligiblity-bug

making plan api timeout longer and dispatch messages faster
This commit is contained in:
KhalimCK 2025-12-02 04:28:55 +08:00 committed by GitHub
commit d25e797a4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ async def trigger_plan_entrypoint(body: PlanTriggerRequest):
f"Chunk {i} sent to SQS. Rows {index_start}{index_end}. Message ID: {response.get('MessageId')}" f"Chunk {i} sent to SQS. Rows {index_start}{index_end}. Message ID: {response.get('MessageId')}"
) )
await asyncio.sleep(0.1) # Small delay to avoid SQS throttling await asyncio.sleep(0.05) # Small delay to avoid SQS throttling
# await asyncio.sleep(random.uniform(0.1, 0.5)) # Delay to reduce spike pressure # await asyncio.sleep(random.uniform(0.1, 0.5)) # Delay to reduce spike pressure

View file

@ -48,7 +48,7 @@ functions:
fastapi-backend: fastapi-backend:
handler: backend.app.main.handler handler: backend.app.main.handler
timeout: 30 timeout: 60
memorySize: 512 memorySize: 512
role: FastApiLambdaRole role: FastApiLambdaRole
events: events: