mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
fix: dev2
This commit is contained in:
@@ -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(),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user