mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-31 19:45:15 +02:00
feat(event_bus): register session hooks at app startup
This commit is contained in:
parent
3354143a28
commit
75a1fee4e3
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ from app.rate_limiter import get_real_client_ip, limiter
|
|||
from app.routes import router as crud_router
|
||||
from app.routes.auth_routes import router as auth_router
|
||||
from app.schemas import UserCreate, UserRead, UserUpdate
|
||||
from app.session_events import register_session_hooks
|
||||
from app.users import SECRET, auth_backend, current_active_user, fastapi_users
|
||||
from app.utils.perf import log_system_snapshot
|
||||
|
||||
|
|
@ -588,6 +589,7 @@ async def lifespan(app: FastAPI):
|
|||
"first real request will pay the full compile cost."
|
||||
)
|
||||
|
||||
register_session_hooks()
|
||||
log_system_snapshot("startup_complete")
|
||||
|
||||
yield
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue