events.py 412 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. from typing import Callable, Optional
  3. from fastapi import FastAPI
  4. # from app.controllers.equipment.events import regulate_ahu_freq
  5. from app.services.milvus_helpers import get_milvus_cli
  6. def create_start_app_handler(app: Optional[FastAPI] = None) -> Callable:
  7. async def start_app() -> None:
  8. # await regulate_ahu_freq()
  9. await get_milvus_cli()
  10. return start_app