feat: 彻底移除 yirimirai

This commit is contained in:
Junyan Qin
2024-11-15 20:03:49 +08:00
parent 16153dc573
commit 3239c9ec3f
9 changed files with 21 additions and 169 deletions

View File

@@ -125,3 +125,10 @@ class Application:
except Exception as e:
self.logger.error(f"应用运行致命异常: {e}")
self.logger.debug(f"Traceback: {traceback.format_exc()}")
async def scoped_shutdown(self, scopes: list[str]):
pass
async def shutdown(self):
for task in self.task_mgr.tasks:
task.cancel()