Ejemplo n.º 1
0
async def app_shutdown():
    """
    Do tasks related to app termination.
    """
    # This does finish the DB driver connection.
    config.close_db_client()


# if __name__ == "__main__":
# uvicorn.run("main:app", host="0.0.0.0", port=9776)
# uvicorn.run("main:app", host="0.0.0.0", port=9776, log_level="info", loop="asyncio")
#
# if __name__ == "__main__":
#     uvicorn.run("main:app", host="0.0.0.0", port=8000, log_level="info", loop="asyncio")
Ejemplo n.º 2
0
async def app_shutdown():
    """
    Do tasks related to app termination.
    """
    config.close_db_client()
Ejemplo n.º 3
0
Archivo: main.py Proyecto: VFL13/ToDo
async def app_shutdown():
    """
    Do tasks related to app termination. TODO SEND TO MESSAGE TO TELEGRAM
    """
    # This does finish the DB driver connection.
    config.close_db_client()
async def app_shutdown():
    """
    Do tasks related to app termination.
    """
    # This does finish the DB driver connection.
    config.close_db_client()
Ejemplo n.º 5
0
async def app_shutdown():
    config.close_db_client()
Ejemplo n.º 6
0
async def app_shutdown():
    # This does finish the DB driver connection.
    config.close_db_client()