diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index 3ec1bf5f..e6e6052f 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -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 diff --git a/serverless.yml b/serverless.yml index 6eea03eb..7e4d78b6 100644 --- a/serverless.yml +++ b/serverless.yml @@ -48,7 +48,7 @@ functions: fastapi-backend: handler: backend.app.main.handler - timeout: 30 + timeout: 60 memorySize: 512 role: FastApiLambdaRole events: