Phase 5 of Migration
This commit is contained in:
@@ -108,9 +108,9 @@ async def crm_poll_loop():
|
||||
@app.on_event("startup")
|
||||
async def startup():
|
||||
init_firebase()
|
||||
await db.init_db()
|
||||
await melody_service.migrate_from_firestore()
|
||||
mqtt_manager.start(asyncio.get_event_loop())
|
||||
asyncio.create_task(db.partition_manager_loop())
|
||||
asyncio.create_task(db.purge_loop())
|
||||
asyncio.create_task(nextcloud_keepalive_loop())
|
||||
asyncio.create_task(crm_poll_loop())
|
||||
@@ -125,7 +125,6 @@ async def startup():
|
||||
@app.on_event("shutdown")
|
||||
async def shutdown():
|
||||
mqtt_manager.stop()
|
||||
await db.close_db()
|
||||
await close_nextcloud_client()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user