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")
async def app_shutdown(): """ Do tasks related to app termination. """ config.close_db_client()
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()
async def app_shutdown(): config.close_db_client()
async def app_shutdown(): # This does finish the DB driver connection. config.close_db_client()