Пример #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")
Пример #2
0
async def app_shutdown():
    """
    Do tasks related to app termination.
    """
    config.close_db_client()
Пример #3
0
Файл: main.py Проект: 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()
Пример #5
0
async def app_shutdown():
    config.close_db_client()
Пример #6
0
async def app_shutdown():
    # This does finish the DB driver connection.
    config.close_db_client()