making plan api timeout longer and dispatch messages faster

This commit is contained in:
Khalim Conn-Kowlessar 2025-12-01 20:28:32 +00:00
parent 4e07049edb
commit 08908659f6
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')}"
)
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

View file

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