mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-18 12:27:50 +02:00
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> |
||
|---|---|---|
| .. | ||
| models | ||
| routers | ||
| __init__.py | ||
| test_app_manage_lock.py | ||
| test_apps_uninstall_keep_data.py | ||
| test_change_password.py | ||
| test_cln_list_all_tx.py | ||
| test_cln_shell_safety.py | ||
| test_exec_bash_timeout.py | ||
| test_jwt.py | ||
| test_native_python_errors.py | ||
| test_send_coins_input.py | ||
| test_sse_manager.py | ||
| test_warmup_events.py | ||
| utils.py | ||