add close_connections to fix stuck

This commit is contained in:
long2ice
2021-01-29 22:58:12 +08:00
parent cd176c1fd6
commit 4780b90c1c
4 changed files with 91 additions and 82 deletions

View File

@@ -1 +1 @@
__version__ = "0.4.4"
__version__ = "0.4.5"

View File

@@ -39,6 +39,7 @@ def coro(f):
app = ctx.obj.get("app")
if app:
Migrate.remove_old_model_file(app, ctx.obj["location"])
loop.run_until_complete(Tortoise.close_connections())
return wrapper