mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
feat: 添加多个可视化编辑schema
This commit is contained in:
@@ -125,9 +125,11 @@ class Application:
|
||||
import signal
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
for task in tasks:
|
||||
for task in self.asyncio_tasks:
|
||||
task.cancel()
|
||||
self.logger.info("程序退出.")
|
||||
# 结束当前事件循环
|
||||
self.event_loop.stop()
|
||||
exit(0)
|
||||
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
@@ -138,4 +140,3 @@ class Application:
|
||||
except Exception as e:
|
||||
self.logger.error(f"应用运行致命异常: {e}")
|
||||
self.logger.debug(f"Traceback: {traceback.format_exc()}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user