mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Merge pull request #591 from Hestia-Homes/eco-eligiblity-bug
making plan api timeout longer and dispatch messages faster
This commit is contained in:
commit
d25e797a4c
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue