INNER CODE UNIT · Python

shutdown_elapsed

AleksNeStu/ai-real-estate-assistant · apps/api/api/main.py:486

    shutdown_elapsed = asyncio.get_event_loop().time() - shutdown_start_time
    logger.info("Graceful shutdown completed in %.2fs", shutdown_elapsed)


# CORS configuration
app.add_middleware(
    CORSMiddleware,
    allow_origins=get_settings().cors_allow_origins,
    allow_credentials=True,
    allow_methods=["*"],
    allow_headers=["*"],
    expose_headers=[REQUEST_ID_HEADER],
)

# Include Routers
app.include_router(search.router, prefix="/api/v1", dependencies=[Depends(get_optional_api_key)])
app.include_router(chat.router, prefix="/api/v1", dependencies=[Depends(get_api_key)])
# Task #45: Agent/Broker Integration (public list_agents; moved outside

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…