blitz_api/app/auth
fusion44 868457ffa5
fix(api): replace deprecated asyncio.get_event_loop()
get_event_loop() is deprecated on Python 3.11+ when there is no running
loop and is slated to change behaviour further.

- SSEManager.setup() ran at import time (app.api.utils) via
  get_event_loop(); this only worked because uvicorn imports the app
  inside its loop and would break when imported without a running loop
  (e.g. a Celery worker). Start the broadcast consumer lazily from
  within a running loop instead.
- everywhere else the pattern was get_event_loop().create_task(x)
  inside a coroutine; replace with asyncio.create_task(x).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 22:34:44 +02:00
..
__init__.py feat: implement get hardware info api 2021-06-12 15:07:35 +02:00
auth_bearer.py feat: implement Ruff as a linter; fix given errors 2023-06-25 07:17:00 +02:00
auth_handler.py fix(api): replace deprecated asyncio.get_event_loop() 2026-07-03 22:34:44 +02:00