Alwrity calendar generation framework - step 1-3 completed with real database integration

This commit is contained in:
ajaysi
2025-08-24 19:50:37 +05:30
parent 5d8d1cfb73
commit 6c72ef1a68
124 changed files with 30532 additions and 7066 deletions

View File

@@ -100,7 +100,7 @@ app.middleware("http")(monitoring_middleware)
# Simple rate limiting
request_counts = defaultdict(list)
RATE_LIMIT_WINDOW = 60 # 60 seconds
RATE_LIMIT_MAX_REQUESTS = 60 # Increased from 30 to 60 requests per minute
RATE_LIMIT_MAX_REQUESTS = 200 # Increased for testing - calendar generation polling
@app.middleware("http")
async def rate_limit_middleware(request: Request, call_next):
@@ -119,6 +119,7 @@ async def rate_limit_middleware(request: Request, call_next):
"/ai-analytics", # Exempt AI analytics endpoint from rate limiting
"/gap-analysis", # Exempt gap analysis endpoint from rate limiting
"/calendar-events", # Exempt calendar events endpoint from rate limiting
"/calendar-generation/progress", # Exempt calendar generation progress from rate limiting
"/health" # Exempt health check endpoints from rate limiting
]):
# Allow streaming endpoints without rate limiting