fix: dev2

This commit is contained in:
Timothy J. Baek
2024-09-24 16:19:24 +02:00
parent ff651ddc36
commit 3cee507687
4 changed files with 10 additions and 5 deletions

View File

@@ -90,10 +90,14 @@ async def periodic_usage_pool_cleanup():
await asyncio.sleep(TIMEOUT_DURATION)
async def on_startup():
asyncio.create_task(periodic_usage_pool_cleanup())
app = socketio.ASGIApp(
sio,
socketio_path="/ws/socket.io",
on_startup=asyncio.create_task(periodic_usage_pool_cleanup()),
on_startup=on_startup(),
)