refactor: remove enable_lock attribute and enhance locking mechanism in Model class

This commit is contained in:
HibiKier
2025-12-23 23:23:58 +08:00
parent af75d7fc5a
commit 587396eb49
4 changed files with 51 additions and 21 deletions
-1
View File
@@ -94,7 +94,6 @@ __all__ = [
async def cancel_pending_tasks():
"""仅取消 zhenxun 业务协程,避免干扰框架的关机流程。"""
loop = asyncio.get_running_loop()
current = asyncio.current_task(loop=loop)
pending = []